/* ============================================================
   Tajudeen Isah — portfolio
   Design language carried over from the Ambit marketplace:
   warm paper ground, lime accent, Georgia display serif,
   hard offset shadows, square-ish cards with one clipped corner.
   ============================================================ */

:root {
  --ink: #11130f;
  --muted: #62675e;
  --paper: #f5f3ec;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --line: #dcd9ce;
  --lime: #d8ff4f;
  --lime-deep: #8cab18;
  --green: #205c43;
  --green-soft: #dff3e7;
  --amber: #8d5a06;
  --amber-soft: #fff0c9;
  --red: #9b3027;
  --red-soft: #ffe4df;
  --blue: #275cc5;
  --blue-soft: #e5edff;
  --shadow: 0 24px 70px rgba(32, 38, 27, 0.1);
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(216, 255, 79, 0.18), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--green);
  outline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

/* the hidden attribute must win over any display rule below */
[hidden] {
  display: none !important;
}

code {
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: -9999px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
}

.skip-link:focus {
  left: 16px;
}

/* ══════════ SPLASH (3s) ══════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--paper);
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

body.splash-done .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px 20px 8px 20px;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--ink);
  animation: splash-pop 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes splash-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.splash-name {
  color: #3f443c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: splash-fade 600ms ease 220ms both;
}

.splash-bar {
  overflow: hidden;
  width: 132px;
  height: 4px;
  border-radius: 999px;
  background: #e4e1d6;
}

.splash-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lime-deep);
  transform: scaleX(0);
  transform-origin: left;
  animation: splash-fill 2.7s ease forwards;
}

@keyframes splash-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes splash-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* JS-off / reduced-motion: never trap the page behind the splash */
.no-js .splash,
.splash[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none !important;
  }
}

.scroll-rail {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 150;
  width: 0;
  height: 3px;
  background: var(--lime-deep);
  transition: width 100ms linear;
}

.site-shell {
  min-height: 100vh;
}

.section-shell,
.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ══════════ HEADER ══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  border-bottom: 1px solid rgba(17, 19, 15, 0.12);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 4px 12px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  gap: 28px;
  color: #3f443c;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding-block: 4px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-deep);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-tail {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #3f443c;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.network-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(140, 171, 24, 0.16);
  animation: badge-pulse 2.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 220ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ══════════ HERO ══════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 80px;
  padding-block: 96px 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6b7066;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-accent {
  color: var(--green);
}

.hero h1,
.section-heading h2,
.panel-heading h2,
.principles h3,
.category-card h3,
.agent-card h2,
.stack-card h3,
.timeline h3,
.state-panel h2,
.site-footer strong,
.proof-strip strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.9rem, 6.2vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero h1 span {
  position: relative;
  z-index: 0;
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.08em;
  left: -0.03em;
  height: 0.2em;
  border-radius: 999px;
  background: var(--lime);
  content: '';
  transform: rotate(-2deg);
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: #51564d;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions,
.filter-actions,
.pagination-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ══════════ BUTTONS ══════════ */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  color: var(--surface);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--lime);
}

.button-secondary,
.button-ghost,
.button-compact {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-strong);
}

.button-ghost {
  background: transparent;
}

.button-compact {
  min-height: 40px;
  padding-inline: 13px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.button-compact.is-active {
  border-color: #a9b66a;
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
}

.button-wide {
  width: 100%;
}

/* ══════════ HERO CONSOLE ══════════ */
.hero-console {
  overflow: hidden;
  border: 1px solid #2c3029;
  border-radius: 24px;
  color: #f7f8f3;
  background: #171a16;
  box-shadow:
    18px 22px 0 rgba(216, 255, 79, 0.55),
    var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 260ms ease;
}

.hero-console:hover {
  transform: rotate(0deg);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 20px;
  border-bottom: 1px solid #33372f;
}

.console-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555b50;
}

.console-header span:first-child {
  background: var(--lime);
}

.console-header strong {
  margin-left: auto;
  color: #9ca394;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
}

.console-body {
  display: grid;
  gap: 20px;
  padding: 32px;
}

.console-body p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #c6cbc0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.console-body p span {
  color: #70776a;
}

.console-body .console-success {
  color: var(--lime);
}

/* ══════════ PROOF STRIP ══════════ */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.proof-strip div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-size: 2rem;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ══════════ SECTION HEADINGS ══════════ */
.category-section {
  padding-top: 82px;
}

.section-heading,
.panel-heading,
.agent-card-heading,
.agent-card-topline,
.agent-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-heading h2,
.panel-heading h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

/* ══════════ CATEGORY CARDS ══════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  position: relative;
  display: grid;
  min-height: 240px;
  align-content: space-between;
  gap: 30px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.78);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.category-card:hover {
  border-color: #a9b66a;
  background: #f7ffd5;
  transform: translateY(-3px);
}

.category-code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #cad791;
  border-radius: 12px 12px 4px 12px;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.category-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #6e755b;
  font-weight: 900;
}

/* ══════════ WORK / SEARCH PANEL ══════════ */
.marketplace-section {
  padding-block: 86px;
}

.search-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 12px 45px rgba(37, 40, 32, 0.06);
}

.filter-actions {
  flex-wrap: wrap;
}

.filter-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* ══════════ PROJECT CARDS ══════════ */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.agent-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(30, 34, 27, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    opacity 220ms ease;
}

.agent-card:hover {
  border-color: #b7b3a6;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.agent-card.is-hidden {
  display: none;
}

.agent-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c6d187;
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(145deg, #f2ffad, var(--lime));
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.agent-card-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-neutral {
  border-color: #d8d6cd;
  color: #62665d;
  background: #efeee8;
}

.status-positive {
  border-color: #b7dbc4;
  color: var(--green);
  background: var(--green-soft);
}

.status-warning {
  border-color: #efd594;
  color: var(--amber);
  background: var(--amber-soft);
}

.status-danger {
  border-color: #f1b9b1;
  color: var(--red);
  background: var(--red-soft);
}

.status-brand {
  border-color: #bfcdf5;
  color: var(--blue);
  background: var(--blue-soft);
}

.agent-card-heading {
  margin-top: 28px;
}

.agent-card h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

/* Original app assets, source-defined marks, and text wordmarks. */
.agent-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.agent-card-topline {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-logo {
  display: inline-flex;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-afterhours img { border-radius: 16px; }
.logo-root img { width: 44px; height: 44px; }
.logo-root { border-radius: 20px; border: 2px solid rgba(16, 185, 129, .3); background: linear-gradient(135deg, #0a2a1a, #0d1f15); }
.logo-root img { filter: invert(100%); }
.logo-ambit { width: 48px; height: 48px; border-radius: 12px 12px 4px 12px; background: #d8ff4f; color: #11130f; font-size: 1.3rem; font-weight: 900; box-shadow: 4px 4px 0 #11130f; }
.logo-bulkhead { width: 48px; height: 48px; border-radius: 7px; background: #76d5c8; color: #0b1117; font-size: 1.3rem; font-weight: 800; }
.logo-postern { width: 48px; height: 48px; border: 1px solid #4e417e; border-radius: 8px; color: #d3caff; background: linear-gradient(135deg, #342b53, #161326); font-size: 1.2rem; font-weight: 800; }
.logo-trustpay, .logo-blackbox, .logo-parallax, .logo-cynosure { width: auto; min-height: 64px; padding: 10px 12px; border-radius: 10px; }
.logo-trustpay { gap: 5px; color: #e8e6df; background: #0b0d0c; font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; font-size: 1.05rem; }
.logo-trustpay em { color: #c9a24b; font-style: normal; }
.logo-blackbox { color: #e8e8e3; background: #111310; font-size: .85rem; font-weight: 500; letter-spacing: .15em; }
.logo-parallax { color: #e8ecf3; background: #10141c; font-size: .95rem; font-stretch: condensed; }
.logo-cynosure { display: flex; flex-direction: column; align-items: flex-start; color: #8b0000; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.logo-cynosure em { color: #111; font-weight: 400; }
.logo-sendme { width: 152px; }
.project-recency { margin-bottom: 6px; color: var(--muted); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.project-tagline { margin-top: 10px; color: var(--green); font-size: .9rem; font-weight: 700; line-height: 1.55; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.agent-card-footer { flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.agent-card .chip-list { margin-top: auto; margin-bottom: 0; padding-bottom: 20px; }
.project-private { color: var(--muted); }
.project-search { display: grid; gap: 8px; margin-bottom: 20px; }
.project-search > span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.project-search input { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-strong); }
.project-search input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.no-js .search-panel { display: none; }

.agent-description {
  min-height: 76px;
  margin: 18px 0 20px;
  color: #555a51;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 7px 9px;
  border: 1px solid #d7d4c8;
  border-radius: 8px;
  color: #484d44;
  background: #f8f6ef;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.agent-card-footer {
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #777b72;
  font-size: 0.7rem;
}

.text-link {
  color: #30342e;
  font-weight: 800;
}

.text-link:hover {
  color: var(--green);
}

.pagination-row {
  justify-content: center;
  margin-top: 30px;
}

/* ══════════ STATE PANEL ══════════ */
.state-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 54px 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.7);
  text-align: center;
}

.state-panel h2 {
  font-size: 1.7rem;
}

.state-panel p {
  color: var(--muted);
}

/* ══════════ PRINCIPLES ══════════ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.principles article {
  padding: 34px;
  background: var(--surface);
}

.principles article > span {
  color: var(--lime-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.principles h3 {
  margin: 20px 0 8px;
  font-size: 1.4rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════ STACK ══════════ */
.stack-section {
  padding-block: 86px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stack-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.stack-card:hover {
  border-color: #a9b66a;
  transform: translateY(-3px);
}

.stack-card h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

/* ══════════ FLUTTER JOURNEY ══════════ */
.flutter-section {
  padding-block: 86px;
}

.flutter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flutter-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.flutter-card:hover {
  border-color: #b7b3a6;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.flutter-card-wide {
  grid-column: 1 / -1;
}

.flutter-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.flutter-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #c6d187;
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(145deg, #f2ffad, var(--lime));
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 700;
}

.flutter-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.flutter-card-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.flutter-card p {
  margin: 0;
  color: #555a51;
  font-size: 0.95rem;
  line-height: 1.6;
}

.flutter-card a {
  margin-top: auto;
}

.flutter-avatar.project-logo { width: 64px; height: 64px; border: 0; background: transparent; }
.flutter-avatar.logo-sendme { width: 152px; }

/* ══════════ TIMELINE ══════════ */
.timeline-section {
  padding-bottom: 86px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 820px;
  padding-left: 34px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  background: var(--line);
  content: '';
}

.timeline li {
  position: relative;
}

.timeline li::before {
  position: absolute;
  top: 6px;
  left: -34px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--lime-deep);
  border-radius: 4px 4px 1px 4px;
  background: var(--lime);
  content: '';
}

.timeline-when {
  display: block;
  margin-bottom: 6px;
  color: var(--lime-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════ CONTACT ══════════ */
.contact-section {
  padding-bottom: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 56px;
  align-items: start;
}

.contact-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.contact-lede {
  margin: 20px 0 30px;
  max-width: 52ch;
  color: #51564d;
  line-height: 1.75;
}

.contact-facts {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

.contact-facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.contact-facts > div:last-child {
  border-bottom: 0;
}

.contact-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-facts dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 45px rgba(37, 40, 32, 0.06);
}

.panel-heading h2 {
  font-size: 1.75rem;
}

.panel-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: #60665b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #d2cfc3;
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface-strong);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 92, 67, 0.12);
  outline: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
  background: var(--red-soft);
}

.field-error {
  color: var(--red);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

/* ══════════ FOOTER ══════════ */
.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 38px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 1.3rem;
}

.site-footer p,
.site-footer > span {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ══════════ REVEAL ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1040px) {
  .site-header { gap: 16px; }
  .site-nav { gap: 18px; }
  .network-badge { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding-block: 64px 60px;
  }

  .hero-console {
    transform: none;
    box-shadow:
      12px 14px 0 rgba(216, 255, 79, 0.55),
      var(--shadow);
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-heading > p {
    text-align: left;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .network-badge {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 84px 0 auto;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 300ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding-block: 46px 52px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .console-body {
    padding: 22px;
    gap: 15px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(1),
  .proof-strip div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .category-section,
  .marketplace-section,
  .stack-section {
    padding-block: 54px;
  }

  .category-grid,
  .agent-grid,
  .stack-grid,
  .flutter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-card {
    min-height: 0;
  }

  .agent-description {
    min-height: 0;
  }

  .principles article {
    padding: 26px;
  }

  .contact-facts > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-facts dd {
    text-align: left;
  }

  .contact-panel {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-rail,
  .search-panel,
  .contact-panel,
  .pagination-row {
    display: none;
  }

  body {
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
