/* =====================================================================
   AgentOS v5 — "The Jam-inspired build"
   Bordered page-shell on warm paper, dot-grid backgrounds, airy
   light-weight headlines, an interactive capability tab-strip, and
   bento grids of real UI components. Green stays the single accent.
   ===================================================================== */
@font-face {
  font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/dmsans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("assets/fonts/dmsans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/dmsans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk"; font-weight: 300 800; font-style: normal; font-display: swap;
  src: url("assets/fonts/hostgrotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/fragmentmono.woff2") format("woff2");
}

:root {
  --paper: #faf9f5;          /* Jam warm off-white */
  --paper-2: #f2f1ec;
  --card: #ffffff;
  --ink: #1a1a1a;            /* Jam near-black */
  --muted: #b1b0a9;          /* light gray subtitles */
  --muted-2: #6b6b64;
  --line: rgba(20, 20, 16, 0.09);
  --line-2: rgba(20, 20, 16, 0.14);
  --blue: #2f6bff;           /* Jam link blue */
  --green: #1b8a4a;          /* status dots only */
  --green-soft: #e9f4ed;
  --dot: rgba(20, 20, 16, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  /* Jam uses the system sans stack — no custom webfont */
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* Content fills most of the viewport with only a small gutter, like Jam */
  --container: 1720px;
  --gutter: clamp(18px, 2.4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Dot-grid utility */
.dots {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 840px; }

/* ================= Type ================= */
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
h1 { font-size: clamp(46px, 6.4vw, 82px); }
h2 { font-size: clamp(32px, 3.8vw, 50px); }
h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 10px; }
.section-title { margin-bottom: 4px; }
.section-sub { font-size: clamp(20px, 2.4vw, 28px); font-family: var(--font-head); font-weight: 300; color: var(--muted); letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted-2); max-width: 560px; line-height: 1.55; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2);
}
.kicker::before { content: ""; width: 16px; height: 1px; background: var(--line-2); }
.kicker.light { color: rgba(255,255,255,0.7); }
.kicker.light::before { background: rgba(255,255,255,0.3); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15.5px;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
/* Primary = Jam's dark near-black button (name kept for markup compatibility) */
.btn-dark, .btn-green { background: var(--ink); color: #fff; }
.btn-dark:hover, .btn-green:hover { box-shadow: 0 10px 26px rgba(20,20,16,0.22); }
.btn-frost {
  background: rgba(255,255,255,0.75); color: var(--ink);
  border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(20,20,16,0.05);
}
.btn-frost:hover { background: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; margin-top: auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================= Nav ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(250,249,245,0.85); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter) 15px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted-2); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 18px; font-size: 14.5px; }

/* ================= Page shell (the bordered card wrapping content) ================= */
.shell {
  max-width: var(--container); margin: 14px auto 0; padding: 0 var(--gutter);
}
.shell-inner {
  border: none; border-radius: 0; overflow: hidden;
  background: var(--card);
  /* keep only horizontal section dividers, no side borders */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.block { border-bottom: 1px solid var(--line); padding: 0; }
.block:last-child { border-bottom: none; }
.block-pad { padding: clamp(40px, 6vw, 92px) clamp(24px, 5vw, 76px); }

/* ================= Hero ================= */
.hero { position: relative; text-align: center; padding: clamp(64px, 9vw, 118px) 24px clamp(20px, 4vw, 44px); overflow: hidden; }
.dotfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }

.hero::after { /* soft wash so headline stays crisp over the dots */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 52% at 50% 38%, rgba(250,249,245,0.86) 6%, rgba(250,249,245,0.45) 44%, transparent 74%);
}
.hero-content { position: relative; z-index: 2; }

.hero h1 { max-width: 15ch; margin: 0 auto; }
/* "agents" — plain black like the rest of the headline. A soft pastel wash
   (configure.dev-style) sweeps left-to-right on load, then again every ~30s. */
.hero h1 .grad {
  background: linear-gradient(90deg,
    var(--ink) 0%, var(--ink) 34%,
    #7c9bd6 40%, #a58bde 47%, #8fbf9e 54%, #e3c68f 61%,
    var(--ink) 67%, var(--ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradSweep 30s ease-in-out infinite;
}
@keyframes gradSweep {
  0%        { background-position: 100% 50%; } /* band off the left, sweep starts on load */
  6%, 100% { background-position: 0% 50%; }    /* swept left-to-right (fast), then rests black */
}
@media (prefers-reduced-motion: reduce) { .hero h1 .grad { animation: none; } }
.hero-sub { font-size: 19px; color: var(--muted-2); max-width: 520px; margin: 22px auto 32px; line-height: 1.5; }

/* Interactive dashboards resting on an ASCII horizon (Hermes/Nous-style backdrop) */
.hero-visual { position: relative; max-width: 1120px; margin: clamp(34px,5vw,58px) auto 0; padding: 0 4px; }
.hero-horizon {
  position: absolute; z-index: 0; left: 50%; top: 58px; bottom: -6%;
  width: min(128%, 1500px); transform: translateX(-50%);
  background: url("assets/img/hero-office.jpg") center 30% / cover no-repeat;
  border-radius: 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 74% at 50% 48%, #000 28%, rgba(0,0,0,0.35) 60%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 74% at 50% 48%, #000 28%, rgba(0,0,0,0.35) 60%, transparent 82%);
  opacity: 0.97; filter: saturate(1.08) contrast(1.1);
}
/* soft light wash so the white dashboards read cleanly on top */
.hero-horizon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 58% 62% at 50% 52%, rgba(250,249,245,0.42), rgba(250,249,245,0.08) 55%, transparent 78%);
}
/* interactive clicker sits above the horizon */
.hero-visual .cap-pills,
.hero-visual .cap-stage { position: relative; z-index: 2; }
.hero-visual .cap-pills { padding-top: 0; }
.hero-visual .cap-stage { padding-bottom: 0; min-height: 600px; }
.hero-visual .shotframe { max-width: 968px; }

/* ================= Interactive demo (Jam-style: components over a photo) ================= */
.cap { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
/* Clean paper section, no photo behind the demo */
.cap { background: var(--paper); }
.cap > * { position: relative; z-index: 1; }

.cap-pills {
  display: flex; gap: 10px; padding: 22px clamp(20px,4vw,40px); overflow-x: auto;
  scrollbar-width: none; justify-content: center; flex-wrap: wrap;
}
.cap-pills::-webkit-scrollbar { display: none; }
.cap-pill {
  flex: none; padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.82); font-size: 14px; color: var(--muted-2);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
}
.cap-pill:hover { color: var(--ink); }
.cap-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cap-stage { padding: 10px clamp(16px,4vw,44px) clamp(44px,6vw,84px); position: relative; min-height: 560px; }

/* Real screenshot in a clean floating window */
.shotframe {
  margin: 0 auto; max-width: 1180px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 2px 4px rgba(20,20,16,0.04), 0 44px 100px rgba(20,20,16,0.20);
  overflow: hidden;
}
.shotbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fbfbf9;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.shotbar .url { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.shotbar::before { /* subtle window affordance, monochrome */
  content: ""; width: 40px; height: 8px; border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.shotframe img { display: block; width: 100%; height: auto; }
.shotcap {
  max-width: 620px; margin: 22px auto 0; text-align: center;
  font-size: 15.5px; color: var(--muted-2); line-height: 1.5;
}

/* Screenshot panels swap with a soft crossfade */
.cap-panel {
  position: absolute; left: 0; right: 0; top: 10px;
  padding: 0 clamp(16px,4vw,44px);
  opacity: 0; transform: translateY(16px) scale(0.985); pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.cap-panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }

/* ================= UI component mocks (bento pieces) ================= */
.ui {
  width: 100%; max-width: 720px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20,20,16,0.05), 0 26px 60px rgba(20,20,16,0.09);
  overflow: hidden;
}
.ui-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.ui-head .sub { color: var(--muted-2); font-weight: 400; }
.ui-head .right { margin-left: auto; color: var(--muted-2); font-weight: 400; font-size: 12.5px; }
.ui-body { padding: 20px 22px; }

/* Chat bubbles */
.bubbles { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 11px 15px; font-size: 14.5px; line-height: 1.5; border-radius: 4px 13px 13px 13px; background: var(--paper-2); }
.bubble.otto { background: var(--green-soft); }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 13px 4px 13px 13px; }
.bubble .who { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.bubble.me .who { color: rgba(255,255,255,0.6); }

/* Table (filing cabinet) */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted-2); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .sub { color: var(--muted-2); font-size: 12px; }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted-2); white-space: nowrap; border: 1px solid var(--line); }
.tag.green, .tag.amber, .tag.red { background: var(--paper-2); color: var(--muted-2); }

/* Rows (whiteboard / tasks) */
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; }
.row .dot-i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.row .dot-i.open { background: transparent; border: 1.5px solid var(--line-2); }
.row .grow { flex: 1; }

/* Stat tiles + sparklines */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--card); }
.stat .label { font-size: 13px; color: var(--muted-2); }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.stat .num { font-family: var(--font-head); font-weight: 300; font-size: 40px; letter-spacing: -0.02em; margin: 8px 0 6px; }
.stat .num .up { font-family: var(--font-body); font-size: 13px; color: var(--muted-2); font-weight: 500; margin-left: 6px; }
.spark { width: 100%; height: 34px; display: block; }

/* Bars (what I know) */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 14px; font-size: 14px; }
.bar { height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.bar-row .pct { text-align: right; color: var(--muted-2); font-size: 13px; }

/* ================= Bento section ================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 3; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; min-height: 240px; overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tile:hover { box-shadow: 0 18px 44px rgba(20,20,16,0.08); transform: translateY(-2px); }
.tile.wide { grid-column: span 4; }
.tile.narrow { grid-column: span 2; }
.tile.full { grid-column: span 6; }
.tile-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted-2); font-size: 15px; line-height: 1.5; }
.tile .fill { margin-top: auto; padding-top: 22px; }

/* Tile that holds a real product screenshot */
.tile.shot { padding: 28px 28px 0; }
.tile.shot .tile-text { padding-bottom: 6px; }
.tile.shot .tile-shot {
  margin-top: auto; border: 1px solid var(--line); border-top-left-radius: 12px; border-top-right-radius: 12px;
  overflow: hidden; box-shadow: 0 -1px 0 rgba(20,20,16,0.02), 0 24px 50px rgba(20,20,16,0.10);
  background: #fbfbf9;
}
.tile.shot .tile-shot img { display: block; width: 100%; height: auto; }
.tile.full.shot { flex-direction: row; align-items: center; gap: 40px; padding: 34px 34px 34px 40px; min-height: 300px; }
.tile.full.shot .tile-text { flex: 0 0 40%; }
.tile.full.shot .tile-shot { flex: 1; margin: 0; border-radius: 12px; align-self: stretch; display: flex; align-items: center; }
@media (max-width: 720px) { .tile.full.shot { flex-direction: column; gap: 22px; } }

/* Handbook mini lines */
.mini-lines { display: grid; gap: 8px; }
.mini-lines i { display: block; height: 10px; border-radius: 4px; background: var(--paper-2); }
.mini-lines i:nth-child(1) { width: 92%; }
.mini-lines i:nth-child(2) { width: 68%; }
.mini-lines i:nth-child(3) { width: 80%; }

/* ================= Logo strip ================= */
.trust { text-align: left; }
.trust .logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; margin-top: 22px; opacity: 0.5; }
.trust .logos span { font-family: var(--font-head); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }

/* ================= Bento span helper ================= */
.tile.third { grid-column: span 2; }   /* 2 of 6 columns = an even third */

/* ================= Testimonials (bento tiles) ================= */
.tile.quote { justify-content: space-between; }
.quote blockquote { font-family: var(--font-head); font-weight: 300; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
.tile.wide.quote blockquote { font-size: 24px; }
.quote figcaption { margin-top: auto; padding-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ================= Pricing (bento tiles) ================= */
.tile.plan { padding: 30px; overflow: visible; }   /* let the "Recommended" badge show above the tile */
.plan h3 { font-size: 18px; }
.plan .price { font-family: var(--font-head); font-weight: 300; font-size: 46px; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan .price span { font-size: 14px; color: var(--muted-2); }
.plan-tag { color: var(--muted-2); font-size: 14.5px; margin-bottom: 20px; }
.plan-featured { border-color: var(--ink); position: relative; }
.plan-featured::before { content: "Recommended"; position: absolute; top: -12px; left: 26px; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.checklist { list-style: none; display: grid; gap: 11px; margin: 0 0 28px; }
.checklist li { padding-left: 26px; position: relative; color: var(--muted-2); font-size: 14.5px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 600; }

/* ================= FAQ ================= */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq-list summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted-2); font-size: 22px; transition: transform 0.25s ease, color 0.25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-list details p { margin-top: 14px; color: var(--muted-2); font-size: 15.5px; line-height: 1.6; max-width: 660px; }

/* ================= Otto split ================= */
.otto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 720px) { .otto-grid { grid-template-columns: 1fr; gap: 36px; } }
.otto-grid .shotframe { max-width: none; }

/* ================= Loops (coordination feature) ================= */
.loop-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 44px; }
.loop-benefits b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
.loop-benefits p { font-size: 14px; color: var(--muted-2); line-height: 1.5; }
@media (max-width: 860px) { .loop-benefits { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .loop-benefits { grid-template-columns: 1fr; } }
.loop-tags { margin-top: 30px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--muted-2); }

/* ================= Final CTA (dark, with reactive dot field) ================= */
.final { position: relative; text-align: center; color: #fff; padding: clamp(90px,11vw,150px) 24px; overflow: hidden; background: #141310; }
.final .dotfield.dark { position: absolute; inset: 0; z-index: 0; }
/* recurring ASCII horizon motif, glowing softly out of the dark */
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/img/hero-office.jpg") center 62% / cover no-repeat;
  opacity: 0.34; mix-blend-mode: screen; filter: saturate(0.75);
  -webkit-mask-image: radial-gradient(ellipse 100% 88% at 50% 66%, #000 22%, transparent 82%);
  mask-image: radial-gradient(ellipse 100% 88% at 50% 66%, #000 22%, transparent 82%);
}
.final::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 46%, rgba(20,19,16,0.75) 10%, transparent 72%); }
.final-content { position: relative; z-index: 2; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255,255,255,0.78); margin: 20px auto 34px; max-width: 540px; }
.btn-frost-dark { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn-frost-dark:hover { background: rgba(255,255,255,0.14); }

/* ================= Footer ================= */
.footer { position: relative; overflow: hidden; padding: 40px var(--gutter); }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/img/hero-office.jpg") center 88% / cover no-repeat;
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
  mask-image: linear-gradient(180deg, transparent, #000 65%);
}
.footer-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-note { color: var(--muted-2); font-size: 13.5px; flex: 1; text-align: center; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted-2); }
.footer-links a:hover { color: var(--ink); }

/* ================= Insights / blog (inherited pages) ================= */
.page-head { position: relative; overflow: hidden; padding: 150px 0 60px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/img/hero-office.jpg") center 20% / cover no-repeat;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse 80% 92% at 32% 42%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 92% at 32% 42%, #000 18%, transparent 78%);
}
.page-head .container { position: relative; z-index: 1; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 110px; }
.post-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.post-card:hover { box-shadow: 0 16px 40px rgba(20,20,16,0.08); transform: translateY(-3px); }
.post-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.post-card h3 { font-size: 25px; font-weight: 300; font-family: var(--font-head); }
.post-card p { color: var(--muted-2); font-size: 15px; line-height: 1.5; }
.post-card .read { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 15px; color: var(--blue); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 150px 24px 110px; }
.article h1 { font-size: clamp(38px,5vw,60px); margin: 16px 0 12px; }
.article .post-meta { margin-bottom: 40px; display: block; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.article h2 { font-size: 30px; margin: 44px 0 12px; }
.article p { color: #3a3a34; font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.article ul { margin: 0 0 18px 22px; color: #3a3a34; font-size: 17px; line-height: 1.7; }
.article h3 { font-size: 22px; margin: 34px 0 10px; }
.article .post-signoff { margin-top: 40px; color: var(--muted-2); font-size: 15px; font-style: italic; }
.article .flow { font-size: 15px; color: var(--muted-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.7; }
.article .table-wrap { overflow-x: auto; margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 12px; }
.article table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.article th, .article td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.article th:last-child, .article td:last-child { border-right: none; }
.article tbody tr:last-child th, .article tbody tr:last-child td { border-bottom: none; }
.article thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.article tbody th { font-weight: 600; color: var(--ink); background: #fbfbf8; white-space: nowrap; }
.article tbody td { color: #3a3a34; }
.article .article-cta { margin-top: 50px; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.article .article-cta p { margin: 0; }

/* About */
.prose { max-width: 720px; }
.prose p { color: #3a3a34; font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }

/* Legacy section wrapper (used by about/insights) */
.section { padding: 120px 0; }
.section-alt { background: var(--paper-2); }
.section h2 { margin-bottom: 20px; }
.section .lead { margin-bottom: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px 28px; }
.card p { color: var(--muted-2); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ================= Reveal ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.narrow, .tile.full { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.narrow, .tile.full { grid-column: span 1; }
  .stats, .quotes, .plans, .grid-3, .grid-2, .post-grid, .clips { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
  .block-pad { padding: 56px 22px; }
}
