/* Enginuity Initiatives
   Brand: indigo + purple (Enginuity Academy).
   Academic complements: navy #244A67, ivory #F5F3EE, pale blue #DCE6EC, forest #26352F.
   Per-RFP themes override only the --t-* variables inside .rfp / .rfp-card. */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --purple: #7c3aed;
  --accent: #fde047;

  --navy: #244A67;
  --ivory: #F5F3EE;
  --pale: #DCE6EC;
  --forest: #26352F;
  --muted: #55646b;
  --line: #d3dce2;

  --bg: var(--ivory);
  --card: #ffffff;
  --text: var(--forest);
  --heading: var(--navy);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --hero-grad: linear-gradient(135deg, #1f3a5f 0%, #34429f 48%, #6a46d0 100%);
  --gold: #fde047;
  --radius: 14px;
  --shadow: 0 2px 18px rgba(36, 74, 103, .09);
  --max: 1120px;

  /* RFP theme defaults (overridden per RFP) */
  --t-primary: var(--navy);
  --t-secondary: var(--primary);
  --t-accent: var(--pale);
  --t-ink: var(--navy);
  --t-bg: var(--ivory);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary); text-decoration: none; white-space: nowrap; }
.brand small { font-weight: 500; color: var(--muted); font-size: .8rem; border-left: 1px solid var(--line); padding-left: 10px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--forest); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { border-bottom-color: var(--pale); }
.nav-links a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Buttons / tags ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 8px; }
.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); margin: 0 0 22px; color: #fff; }
.eyebrow { font-family: var(--sans); color: var(--purple); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }

/* ---------- Hero (brand gradient, navy-deepened) ---------- */
.hero { background: var(--hero-grad); color: #fff; text-align: center; padding: 88px 0 96px; position: relative; }
.hero.compact { padding: 56px 0 60px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.6rem); margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { max-width: 660px; margin: 0 auto 30px; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-video { overflow: hidden; background: #2b2f7e; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 38, 66, .45) 0%, rgba(30, 40, 100, .34) 45%, rgba(20, 30, 70, .62) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-video .hero-content h1, .hero-video .hero-content p.lead { text-shadow: 0 2px 14px rgba(15, 23, 42, .65); }
.sound-btn { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(15, 23, 42, .55); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.sound-btn:hover { background: rgba(15, 23, 42, .75); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, #e9f0f4 0%, var(--pale) 100%); }
section.strip { background: #fff; padding: 34px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.12rem; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }
.more-link { margin: 30px 0 0; font-weight: 600; }
.prose { max-width: 720px; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pale); color: var(--navy); font-size: 1.3rem; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); }
.stat span { font-size: .86rem; color: var(--muted); }

.cta { background: var(--hero-grad); color: #fff; text-align: center; border-radius: 20px; padding: 48px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .92); margin: 0 auto 24px; max-width: 520px; }

/* ---------- Portfolio cards ---------- */
.rfp-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rfp-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.rfp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(36, 74, 103, .16); }
.rfp-card:focus-within { outline: 3px solid var(--purple); outline-offset: 2px; }
.rfp-card[hidden] { display: none; }
.rfp-card-art { position: relative; height: 128px; background: linear-gradient(135deg, var(--t-primary), var(--t-secondary)); overflow: hidden; }
.rfp-card-art .motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.lvl { position: absolute; left: 14px; top: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .3); padding: 3px 10px; border-radius: 999px; }
.rfp-card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.agency { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t-primary); }
.rfp-card h3 { font-size: 1.2rem; margin: 0 0 6px; color: var(--t-ink); }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.num { margin: 0 0 10px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blurb { margin: 0 0 16px; font-size: .92rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rfp-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.more { font-size: .85rem; font-weight: 600; color: var(--t-primary); }
.rfp-card:hover .more { text-decoration: underline; }

.status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--pale); color: var(--navy); }
.status-open { background: #dff3e4; color: #1d5a31; }
.status-closed { background: #e8e8ec; color: #45454f; }
.status-to-confirm { background: #fdf2c6; color: #7a5a00; }
.sample-badge { position: absolute; right: 12px; top: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #fde047; color: #3d3200; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.hero-chips .sample-badge, .rfp-hero .sample-badge { position: static; display: inline-block; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.count { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Individual RFP pages (themed) ---------- */
.rfp { background: var(--t-bg); }
.rfp-hero { position: relative; overflow: hidden; color: #fff; padding: 52px 0 60px; background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-secondary) 100%); }
.rfp-hero .motif { position: absolute; top: 0; right: 0; width: 62%; height: 100%; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.rfp-hero h1, .rfp-hero .rfp-num { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.rfp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--t-accent); }
.rfp-hero-inner { position: relative; z-index: 1; max-width: var(--max); }
.rfp-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 3rem); max-width: 760px; margin: 0 0 12px; }
.rfp-hero .eyebrow { color: var(--t-accent); }
.rfp-num { margin: 0 0 18px; font-size: 1rem; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 22px; color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.level-chip { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); }

.rfp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--t-primary); }
.toc a:hover { background: var(--t-primary); color: #fff; }
.block { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; }
.block h2 { font-size: 1.5rem; color: var(--t-ink); padding-left: 14px; border-left: 4px solid var(--t-accent); }
.block p { margin: 0 0 14px; }
.lede { font-size: 1.12rem; color: var(--t-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--t-ink); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 12px 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--t-primary); transform: rotate(45deg); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--t-accent); }
.timeline li { position: relative; padding: 0 0 18px 18px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--t-primary); }
.d-label { font-weight: 700; color: var(--t-ink); min-width: 190px; }
.d-date { color: var(--muted); }
.placeholder-note { background: #fff; border: 1.5px dashed var(--t-primary); border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: .95rem; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--t-primary); font-weight: 600; }
.docs a:hover { border-color: var(--t-primary); }
.doc-meta { color: var(--muted); font-weight: 400; font-size: .85rem; }

.rfp-aside { position: sticky; top: 84px; }
.glance { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--t-primary); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.glance h2 { font-size: 1.1rem; color: var(--t-ink); }
.glance dl { margin: 0; }
.glance div { padding: 10px 0; border-top: 1px solid var(--line); }
.glance dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-primary); }
.glance dd { margin: 2px 0 0; font-size: .95rem; }

.rfp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 56px; }
.pager { display: block; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--t-ink); }
.pager:hover { border-color: var(--t-primary); }
.pager span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-primary); margin-bottom: 4px; }
.pager strong { font-family: var(--serif); font-size: 1.02rem; }
.pager.next { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #d9e2dd; padding: 40px 0; font-size: .9rem; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #f1f5f2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rfp-layout { grid-template-columns: 1fr; }
  .rfp-aside { position: static; }
}
@media (max-width: 640px) {
  .rfp-hero .motif { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; }
  html { scroll-padding-top: 110px; }
  .nav { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; gap: 2px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 8px; font-size: .88rem; }
  .nav-links a { white-space: nowrap; }
  .nav-links .btn, .brand small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 70px; }
  .rfp-pager { grid-template-columns: 1fr; }
  .pager.next { text-align: left; }
  .d-label { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rfp-card { transition: none; }
}


/* ---------- Banner polish (shared by every hero) ---------- */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 88% 8%, rgba(253, 224, 71, .20), transparent 70%),
              radial-gradient(620px 380px at 6% 100%, rgba(220, 230, 236, .16), transparent 70%); }
.hero > .wrap, .hero .hero-content { position: relative; z-index: 1; }
.hero-tall { padding: 88px 0 96px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { z-index: 0; }
.portfolio-hero .hero-overlay { background: linear-gradient(180deg, rgba(20, 38, 66, .30), rgba(40, 40, 120, .30) 55%, rgba(20, 30, 70, .50)); }
.portfolio-hero:not(.has-art) .hero-overlay { background: none; }
.portfolio-hero h1 em { font-style: normal; color: var(--gold); }
.portfolio-hero.has-art h1, .portfolio-hero.has-art .lead { text-shadow: 0 2px 14px rgba(15, 23, 42, .6); }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 30px; padding: 0; }
.hero-stats li { min-width: 108px; padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(4px); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

/* ---------- Art slots (placeholders until your own art is dropped into assets/art/) ---------- */
.art-chip { position: absolute; z-index: 2; left: 20px; bottom: 20px; font-size: .74rem; font-weight: 600; padding: 7px 12px; border-radius: 8px;
  border: 1.5px dashed rgba(255, 255, 255, .75); color: #fff; background: rgba(15, 23, 42, .35); }
.art-figure { margin: 22px 0 0; }
.art-figure img, .figure-slot { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.art-figure img { box-shadow: var(--shadow); border: 1px solid var(--line); }
.figure-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 16px;
  border: 2px dashed var(--navy); background: repeating-linear-gradient(45deg, rgba(220, 230, 236, .55) 0 12px, rgba(245, 243, 238, .9) 12px 24px); color: var(--navy); font-size: .85rem; }
.figure-slot strong { font-family: var(--serif); font-size: 1.05rem; }
.art-figure figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); font-style: italic; }
.art-figure.portrait { max-width: 320px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 36px; }
.split .section-head { margin-bottom: 0; }
.about-split { grid-template-columns: minmax(0, 1fr) 440px; align-items: start; margin-bottom: 0; }
.split .art-figure { margin: 0; }
.rfp-hero.has-art .motif { display: none; }
.rfp-hero .hero-art { opacity: .55; mix-blend-mode: luminosity; }
.rfp-hero .art-chip { bottom: 16px; left: auto; right: 20px; }
@media (max-width: 760px) {
  .split, .about-split { grid-template-columns: 1fr; }
  .art-figure.portrait { max-width: 260px; }
  .hero-tall { padding: 64px 0 70px; }
}

/* ---------- Blended art: no boxes, art dissolves into the page ---------- */
.art-figure { margin: 0; position: relative; }
.art-frame { position: relative; isolation: isolate; }
/* soft glow in the surrounding theme color sits behind the art */
.art-frame::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 55% 50%, color-mix(in srgb, var(--t-accent, #DCE6EC) 55%, transparent) 0%, transparent 68%); }
.art-frame img, .art-frame .figure-slot {
  display: block; width: 100%; height: auto; border: 0; box-shadow: none; border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 42%, transparent 100%);
          mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 42%, transparent 100%);
}
.art-frame img { mix-blend-mode: normal; }
.art-figure.knockout .art-frame img { mix-blend-mode: multiply; } /* add class 'knockout' for white-background art */
.figure-slot { background: repeating-linear-gradient(45deg, rgba(36, 74, 103, .10) 0 12px, rgba(36, 74, 103, .04) 12px 24px); border: 0; color: var(--navy); }
.art-figure figcaption { text-align: center; font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 2px; }

/* Home: art leans into the section, fading toward the text */
.art-figure.bleed .art-frame { margin-right: -28px; }
.art-figure.bleed .art-frame img, .art-figure.bleed .figure-slot {
  -webkit-mask-image: radial-gradient(ellipse 56% 58% at 54% 50%, #000 44%, transparent 100%);
          mask-image: radial-gradient(ellipse 56% 58% at 54% 50%, #000 44%, transparent 100%); }

/* About: portrait rises into the banner above it */
.art-figure.portrait { max-width: 440px; margin-top: -120px; justify-self: end; position: relative; z-index: 2; }
.art-figure.portrait .art-frame img, .art-figure.portrait .figure-slot {
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 44%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 44%, transparent 100%); }

/* RFP pages: art floats beside the overview text, tinted by that RFP's theme */
.art-figure.float { float: right; width: 46%; margin: -8px -24px 12px 22px; shape-outside: ellipse(60% 60% at 55% 50%); }
.art-figure.float .art-frame::before { background: radial-gradient(ellipse at 55% 50%, color-mix(in srgb, var(--t-accent) 70%, transparent) 0%, transparent 68%); }
.block#overview::after { content: ""; display: block; clear: both; }
@media (max-width: 760px) {
  .art-figure.portrait { margin-top: -60px; justify-self: center; }
  .art-figure.float { float: none; width: 100%; margin: 0 0 8px; }
  .art-figure.bleed .art-frame { margin-right: 0; }
}

/* Paintings: keep the whole composition, dissolve only the borders */
.art-frame img, .art-frame .figure-slot,
.art-figure.bleed .art-frame img, .art-figure.bleed .figure-slot,
.art-figure.portrait .art-frame img, .art-figure.portrait .figure-slot {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.art-figure.float { width: 54%; margin: -4px -18px 10px 22px; shape-outside: margin-box; }
.art-figure.bleed .art-frame { margin-right: -12px; }
@media (max-width: 760px) { .art-figure.float { width: 100%; margin: 0 0 8px; } .art-figure.bleed .art-frame { margin-right: 0; } }

/* =====================================================================
   Meaning-led art: paintings as banners and backgrounds, words on top
   ===================================================================== */
.art-credit { position: absolute; right: 20px; bottom: 14px; z-index: 3; font-size: .74rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); letter-spacing: .02em; }
.art-credit em { font-family: var(--serif); font-style: italic; }
.art-chip.dark { background: rgba(36, 74, 103, .12); color: var(--navy); border-color: var(--navy); right: 20px; left: auto; bottom: 14px; }

/* Banner paintings (portfolio, about) */
.portfolio-hero .hero-overlay, .about-hero .hero-overlay { background: linear-gradient(180deg, rgba(20, 38, 66, .50) 0%, rgba(34, 40, 110, .42) 50%, rgba(20, 30, 70, .68) 100%); }
.portfolio-hero:not(.has-art) .hero-overlay, .about-hero:not(.has-art) .hero-overlay { background: none; }
.about-hero.has-art h1, .about-hero.has-art .lead { text-shadow: 0 2px 14px rgba(15, 23, 42, .6); }
.about-hero .pill { margin-bottom: 18px; }

/* Section backgrounds: painting fades into the page, text sits on the clear side */
.has-bg-art { position: relative; overflow: hidden; }
.has-bg-art > .wrap { position: relative; z-index: 1; }
.bg-art { position: absolute; top: 0; bottom: 0; width: 64%; z-index: 0; pointer-events: none; }
.bg-art.right { right: 0; }
.bg-art img { width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 52%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 52%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.has-bg-art .art-credit.on-section { position: absolute; right: 20px; bottom: 12px; }
.feature .section-head, .story .prose { max-width: 520px; }
.feature { padding-bottom: 84px; }
.story { padding: 96px 0; min-height: 420px; }

/* RFP banner: the painting is the page's header, theme color rides over the text side */
.rfp-hero { padding: 76px 0 88px; min-height: 380px; }
.rfp-hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; mix-blend-mode: normal; z-index: 0; }
.rfp-hero.has-art::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--t-primary) 95%, transparent) 0%, color-mix(in srgb, var(--t-primary) 78%, transparent) 40%, color-mix(in srgb, var(--t-primary) 14%, transparent) 100%); }
.rfp-hero-inner { z-index: 2; }
.rfp-hero::after { z-index: 2; }

/* About the artwork: words on the painting */
#artwork.block { border-bottom: 0; padding-bottom: 12px; }
.art-note { position: relative; display: flex; align-items: center; min-height: 280px; overflow: hidden; border-radius: var(--radius); background: var(--t-primary); color: #fff; box-shadow: var(--shadow); }
.art-note-img { position: absolute; right: 0; top: 0; width: 70%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 52%); mask-image: linear-gradient(90deg, transparent 0, #000 52%); }
.art-note-body { position: relative; z-index: 1; max-width: 56%; padding: 32px 34px; }
.art-note .eyebrow { color: var(--t-accent); }
.art-note h3 { color: #fff; font-size: 1.6rem; margin: 0 0 10px; }
.art-note p { color: rgba(255, 255, 255, .93); margin: 0 0 14px; font-size: .98rem; }
.art-note p.eyebrow { color: var(--t-accent); margin-bottom: 8px; }
.draft-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: var(--gold); color: #3d3200; padding: 3px 10px; border-radius: 999px; }

@media (max-width: 760px) {
  .bg-art { width: 100%; opacity: .26; }
  .bg-art img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%); }
  .rfp-hero { padding: 56px 0 64px; min-height: 0; }
  .rfp-hero.has-art::before { background: linear-gradient(180deg, color-mix(in srgb, var(--t-primary) 90%, transparent), color-mix(in srgb, var(--t-primary) 60%, transparent)); }
  .art-note { display: block; }
  .art-note-img { position: relative; width: 100%; height: 200px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .art-note-body { max-width: none; padding: 8px 22px 26px; }
}

/* tuning after review */
.about-hero .hero-overlay { background: linear-gradient(180deg, rgba(20, 38, 66, .10) 0%, rgba(34, 40, 110, .10) 55%, rgba(20, 30, 70, .42) 100%); }
.about-hero .hero-bg, .about-hero .hero-art { filter: brightness(1.35) saturate(1.1); }
.bg-art { width: 58%; }
@media (max-width: 760px) { .bg-art { width: 100%; } }

/* Header logo */
.brand { gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 30px; } }

/* VersaLearn lockup in the header */
.nav { height: 76px; }
.brand-logo { height: 48px; }
@media (max-width: 640px) { .nav { height: auto; } .brand-logo { height: 40px; } html { scroll-padding-top: 120px; } }
.nav { height: 82px; }
.brand-logo { height: 58px; }
@media (max-width: 640px) { .nav { height: auto; } .brand-logo { height: 46px; } }

/* "Learning Platform" tag beside the lockup */
.brand .brand-tag { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--navy); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.25; }
@media (max-width: 640px) { .brand .brand-tag { display: block; font-size: .68rem; padding-left: 9px; max-width: 64px; } }
.nav-links a { white-space: nowrap; }

/* Header: never let the brand collide with the nav */
.brand { flex: 0 0 auto; }
.nav-links { flex: 0 1 auto; min-width: 0; }
@media (min-width: 641px) and (max-width: 1000px) { .brand .brand-tag { display: none; } }
@media (min-width: 641px) and (max-width: 860px) { .nav-links { gap: 14px; font-size: .85rem; } .nav-links .btn { padding: 7px 12px; } }

/* Mission pull-quote */
.mission { margin: 26px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--purple); font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--navy); }
.story .prose { max-width: 560px; }
.story { min-height: 520px; }

.card .card-cta { margin: 18px 0 0; }
.card .btn-primary { color: #fff; }
.card p.card-cta { margin: 20px 0 0; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); font-family: inherit; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.card p.card-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.card p.copy-status { margin: 10px 0 0; min-height: 1.4em; font-size: .88rem; color: #1d5a31; font-weight: 600; }


/* =====================================================================
   Detailed RFP pages (stat tiles, scoring bars, requirement groups, steps)
   ===================================================================== */
.stat-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; }
.stat-tiles li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--t-primary); border-radius: 12px; padding: 14px 16px; }
.stat-tiles b { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; color: var(--t-ink); }
.stat-tiles span { font-size: .82rem; color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(150px, 38%) 1fr 56px; gap: 14px; align-items: center; }
.bar-name { font-weight: 600; color: var(--t-ink); font-size: .95rem; }
.bar-track { display: block; height: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--t-primary), var(--t-secondary)); border-radius: 999px; }
.bar-pts { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--t-primary); text-align: right; font-size: .9rem; }
.callout { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--t-accent); border-radius: 12px; padding: 18px 20px 8px; }
.callout h3 { color: var(--t-ink); margin: 0 0 10px; }

.req { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; overflow: hidden; }
.req summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 700; color: var(--t-ink); }
.req summary::-webkit-details-marker { display: none; }
.req summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--t-primary); margin-left: 4px; }
.req[open] summary::after { content: "\2212"; }
.req summary span:first-child { flex: 1; }
.req .count { font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--t-accent) 45%, #fff); color: var(--t-ink); border-radius: 999px; padding: 2px 10px; }
.req[open] summary { border-bottom: 1px solid var(--line); }
.req .ticks { padding: 16px 18px 6px; }
.req .ticks li { padding-bottom: 10px; }

.steps { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 58px; display: flex; flex-direction: column; gap: 2px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--t-primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.steps strong { color: var(--t-ink); }
.steps span { color: var(--text); font-size: .95rem; }

.table-wrap { overflow-x: auto; margin-top: 18px; }
.map { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .93rem; }
.map caption { text-align: left; font-weight: 700; color: var(--t-ink); padding: 0 0 8px; caption-side: top; }
.map th, .map td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.map thead th { background: var(--t-primary); color: #fff; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.map tbody th { font-weight: 600; color: var(--t-ink); }
.map td:nth-child(2) { font-variant-numeric: tabular-nums; width: 70px; }
.map .tbd { color: var(--muted); font-style: italic; }
.map tbody tr:last-child th, .map tbody tr:last-child td { border-bottom: 0; }
.prompts { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prompts li { background: #fff; border: 1.5px dashed var(--t-primary); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-style: italic; }

@media (max-width: 640px) {
  .bars li { grid-template-columns: 1fr auto; }
  .bars .bar-track { grid-column: 1 / -1; order: 3; }
  .bar-name { grid-column: 1; }
  .bar-pts { grid-column: 2; grid-row: 1; }
}


/* Video walkthrough */
.video-frame { margin: 18px 0 0; background: #0f172a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f172a; }
.video-frame figcaption { padding: 10px 16px; font-size: .82rem; color: #d7e0ea; background: color-mix(in srgb, var(--t-primary) 80%, #000); }
.transcript { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.transcript summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--t-ink); }
.transcript[open] summary { border-bottom: 1px solid var(--line); }
.transcript p { margin: 0; padding: 12px 16px 0; font-size: .95rem; }
.transcript p:last-child { padding-bottom: 16px; }

.disclaimer { margin: 10px 0 0; font-style: italic; }
.support-note { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--t-primary); border-radius: 12px; padding: 14px 18px; font-size: .95rem; color: var(--text); }
.support-note a { font-weight: 700; color: var(--t-primary); white-space: nowrap; }

/* Interactive course preview (same-site iframe) */

/* Hidden until asked: video and interactive demo open from a button */
.reveal { margin-top: 16px; }
.reveal > summary.reveal-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: .98rem; background: var(--t-primary); color: #fff; border: 2px solid var(--t-primary); box-shadow: var(--shadow); }
.reveal > summary.reveal-btn::-webkit-details-marker { display: none; }
.reveal > summary.reveal-btn::marker { content: ""; }
.reveal > summary.reveal-btn:hover { filter: brightness(1.12); }
.reveal > summary.reveal-btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.reveal .rb-icon { font-size: .8em; margin-right: 10px; }
.reveal .rb-closed small { font-weight: 500; opacity: .85; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .5); }
.reveal .rb-open { display: none; }
.reveal[open] .rb-closed { display: none; }
.reveal[open] .rb-open { display: inline; }
.reveal[open] > summary.reveal-btn { background: transparent; color: var(--t-primary); box-shadow: none; }
.reveal-body { margin-top: 18px; }
.reveal-body > .video-frame, .reveal-body > .demo-frame { margin-top: 0; }
.reveal .rb-closed small { white-space: nowrap; }
@media (max-width: 640px) {
  .reveal > summary.reveal-btn { width: 100%; }
  .reveal .rb-closed { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
  .reveal .rb-closed small { flex-basis: 100%; margin: 0; padding: 0; border: 0; padding-left: 1.55em; }
}

/* Next steps */
.steps + .next-cta { margin-top: 18px; }
.next-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: linear-gradient(135deg, var(--t-primary), var(--t-secondary)); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.next-cta p { margin: 0; font-weight: 600; max-width: 34em; color: #fff; }
.next-cta .btn { background: #fff; color: var(--t-primary); }
#next .draft-tag { margin: 4px 0 6px; }

/* Outcome reflections and founder bio */
.reflections { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.reflections li { background: #fff; border-left: 4px solid var(--t-primary); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.reflections h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--t-ink); }
.reflections p { margin: 0; }
.bio .bio-role { color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.bio p + p { margin-top: 12px; }
.status-submitted { background: #dbe9f6; color: #174a7a; }
.status-responded { background: #e6e1f5; color: #4a3a8a; }

/* Portfolio card date and status legend */
.rfp-card .when { margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.status-legend { margin: -8px 0 22px; font-size: .88rem; color: var(--muted); }
.status-legend b { color: var(--t-ink, var(--navy)); }

/* Support note on the contact card (page has no RFP theme) */
.card .support-note { border-left-color: var(--primary); margin-top: 16px; font-size: .9rem; }
.card-cta { display: flex; flex-wrap: wrap; gap: 10px; }
