/* ==========================================================================
   Grow.Studio — one stylesheet for the whole site.
   Base + shared chrome first, then page-specific sections, then responsive.
   ========================================================================== */

:root {
  --paper: #FAF9F5;
  --paper-deep: #F3F1E9;
  --card: #FFFFFF;
  --ink: #1A2E4A;
  --ink-soft: #2E4468;
  --text: #43413A;
  --muted: #7A766A;
  --faint: #8A8578;
  --line: #E4E1D5;
  --line-soft: #ECEAE0;
  --teal: #0097A7;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.25; margin-bottom: 12px; }
.lede { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); max-width: 640px; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
header {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px 6px; flex-direction: column; gap: 5px;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav a.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  transition: color 0.15s ease;
}
.nav a.nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--teal); }
.header-cta {
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; border: 1px solid var(--ink);
  padding: 8px 18px; border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 14px 30px; border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  display: inline-block; color: var(--ink); font-size: 15px; font-weight: 600;
  text-decoration: none; padding: 14px 10px;
}
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--teal); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 22px;
}
.hero .lede { font-size: clamp(17px, 2.4vw, 20px); max-width: 700px; margin-bottom: 36px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--faint); }
/* exec-ai hero was authored a touch narrower — preserve it */
.page-exec-ai .hero h1 { max-width: 780px; }
.page-exec-ai .hero .lede { max-width: 680px; }

/* ---------- bands ---------- */
.band { background: var(--paper-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- flagship program ---------- */
.flag-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  padding: 40px 38px; margin-top: 44px; position: relative;
}
.flag-badge {
  position: absolute; top: -13px; left: 34px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px;
}
.flag-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.flag-card h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; line-height: 1.25; }
.flag-card .flag-desc { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; }
.flag-points { list-style: none; margin-bottom: 26px; }
.flag-points li {
  font-size: 15px; padding: 9px 0 9px 26px; border-top: 1px solid var(--line-soft);
  position: relative; color: var(--text);
}
.flag-points li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.fmt-mini { display: flex; flex-direction: column; gap: 12px; }
.fmt-mini-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
  background: var(--paper);
}
.fmt-mini-card.hot { background: var(--paper-deep); border-color: var(--ink); }
.fmt-mini-card .fm-dur { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.fmt-mini-card h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.fmt-mini-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- services / follow-up ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 28px; display: flex; flex-direction: column;
}
.svc-card .num { font-family: var(--serif); font-size: 15px; color: var(--teal); margin-bottom: 14px; }
.svc-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.35; }
.svc-card p { font-size: 15px; color: var(--muted); }
.svc-depth {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600;
}
.svc-note { margin-top: 26px; font-size: 14px; color: var(--faint); max-width: 640px; }

/* ---------- about teaser ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-grid .lede { margin-bottom: 24px; }
blockquote.pull {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 28px 24px; position: relative;
}
blockquote.pull p {
  font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink);
  margin-bottom: 16px;
}
blockquote.pull cite { font-style: normal; font-size: 14px; color: var(--muted); }
blockquote.pull cite strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- closing / contact form (home + exec-ai) ---------- */
.closing { background: var(--ink); color: #C9D2E0; }
.closing h2 { color: var(--paper); }
.closing .lede { color: #AAB6C9; }
.closing-note { margin-top: 24px; font-size: 14px; color: #8595AE; }
.closing-note a { color: #C9D2E0; }
.form-card {
  background: var(--card); border-radius: 10px; padding: 36px 34px;
  max-width: 760px; margin-top: 40px; color: var(--text);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--text);
  background: #FFFFFF; border: 1px solid #D9D5C9; border-radius: 6px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A766A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 46, 74, 0.12);
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .btn-primary { border: none; cursor: pointer; font-family: var(--sans); font-size: 15px; }
.form-hint { font-size: 13px; color: var(--faint); flex: 1; min-width: 220px; }
.form-error { display: none; margin-top: 14px; font-size: 14px; color: #9A3B2E; }
.form-error.show { display: block; }

/* ==========================================================================
   ABOUT
   ========================================================================== */

/* ---------- intro ---------- */
.intro { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }

/* ---------- people ---------- */
.people { display: grid; gap: 28px; margin-top: 8px; }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 38px 36px;
}
.person-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.avatar {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  background: var(--paper-deep); border: 1px solid var(--line); color: var(--paper);
  overflow: hidden;
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.person-head h2 { margin-bottom: 2px; font-size: clamp(24px, 3vw, 30px); }
.person-role { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.person p.bio { font-size: 16px; color: var(--text); max-width: 720px; }
.person p.bio + p.bio { margin-top: 14px; }
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.exp-item {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 16px 18px;
}
.exp-item .yrs { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.2; }
.exp-item .what { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.regions { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 28px 24px; display: flex; flex-direction: column;
}
.quote-card p {
  font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink);
  margin-bottom: 18px;
}
.quote-card cite { margin-top: auto; font-style: normal; font-size: 14px; color: var(--muted); }
.quote-card cite strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .btn-row { margin-top: 30px; }

/* ==========================================================================
   EXECUTIVE AI PROGRAM
   ========================================================================== */

/* ---------- why now ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 26px;
}
.why-card .num { font-family: var(--serif); font-size: 15px; color: var(--faint); margin-bottom: 14px; }
.why-card h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.35; }
.why-card p { font-size: 15px; color: var(--muted); }

/* ---------- audience ---------- */
.aud-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; margin-top: 8px; }
.aud-list { list-style: none; margin-top: 28px; }
.aud-list li {
  padding: 14px 0 14px 30px; border-top: 1px solid var(--line-soft);
  position: relative; font-size: 15.5px;
}
.aud-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.aud-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
.aud-side {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 28px;
}
.aud-side h3 { font-size: 18px; margin-bottom: 12px; }
.aud-side p { font-size: 15px; color: var(--muted); }
.aud-side p + p { margin-top: 12px; }

/* ---------- outcomes ---------- */
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.out-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.out-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--sans); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.out-btn h3 { font-size: 17px; line-height: 1.4; font-family: var(--serif); font-weight: 500; }
.out-btn .chev {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform 0.3s ease; color: var(--faint);
}
.out-card.open .chev { transform: rotate(45deg); }
.out-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.out-body p { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }

/* ---------- agenda ---------- */
.agenda-shell { margin-top: 44px; position: relative; }
.tab-btn {
  width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-family: var(--sans); padding: 16px 18px; margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tab-btn .idx { font-family: var(--serif); font-size: 14px; color: var(--faint); flex: none; width: 18px; }
.tab-btn .t-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tab-btn .t-chev { margin-left: auto; color: var(--faint); transition: transform 0.3s ease; flex: none; }
.agenda-item.active .tab-btn { background: var(--ink); border-color: var(--ink); }
.agenda-item.active .tab-btn .idx,
.agenda-item.active .tab-btn .t-title,
.agenda-item.active .tab-btn .t-chev { color: var(--paper); }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.panel-inner { padding: 30px 30px 26px; }
.panel h3 { font-size: 22px; margin-bottom: 6px; }
.panel .p-sub { font-size: 14.5px; color: var(--faint); margin-bottom: 18px; font-style: italic; font-family: var(--serif); }
.panel p.p-desc { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.panel ul { list-style: none; }
.panel ul li {
  font-size: 15px; padding: 9px 0 9px 24px; border-top: 1px solid var(--line-soft);
  position: relative; color: var(--text);
}
.panel ul li::before {
  content: "—"; position: absolute; left: 0; color: var(--faint);
}
.panel .p-note {
  margin-top: 18px; font-size: 13.5px; color: var(--faint);
  background: var(--paper-deep); border-radius: 6px; padding: 12px 16px;
}

/* desktop: tabs left, floating panel right */
@media (min-width: 800px) {
  .agenda-shell { display: block; }
  .agenda-list-col { width: 340px; }
  .agenda-item .panel {
    display: none;
    position: absolute; top: 0; left: 372px; right: 0;
  }
  .agenda-item.active .panel { display: block; animation: fadeIn 0.35s ease; }
  .tab-btn .t-chev { display: none; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* mobile: accordion */
@media (max-width: 799px) {
  .agenda-item .panel {
    max-height: 0; overflow: hidden; border-width: 0;
    transition: max-height 0.4s ease;
    margin: -4px 0 8px;
  }
  .agenda-item.active .panel { border-width: 1px; }
  .agenda-item.active .t-chev { transform: rotate(180deg); }
  .panel-inner { padding: 24px 20px 22px; }
}

/* ---------- formats ---------- */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.fmt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.fmt-card.flagship { border: 2px solid var(--ink); }
.fmt-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px;
}
.fmt-dur { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
.fmt-card h3 { font-size: 21px; margin-bottom: 12px; }
.fmt-card .fmt-desc { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.fmt-goal {
  margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 16px;
  font-size: 14px; color: var(--text);
}
.fmt-goal strong { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { padding: 32px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.foot-inner a { color: var(--muted); text-decoration: none; }
.foot-inner a:hover { text-decoration: underline; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .flag-grid { grid-template-columns: 1fr; gap: 30px; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; gap: 32px; }
  .fmt-grid { grid-template-columns: 1fr; gap: 24px; }
  .out-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav { gap: 10px; }
  .menu-btn { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 24px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link { padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  .btn-primary { width: 100%; text-align: center; }
  .btn-ghost { width: 100%; text-align: center; padding: 10px; }
  .brand img { height: 38px; }
  .flag-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .form-actions .btn-primary { width: 100%; }
  .person { padding: 28px 22px; }
  .exp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.nav a.nav-link.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--teal); }

/* ---------- blog: overview ---------- */
.blog-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.filters { display: flex; flex-wrap: wrap; gap: 24px 44px; align-items: flex-start; margin-bottom: 36px; }
.filter-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { width: 100%; font-size: 13px; color: var(--faint); margin-top: 2px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card[hidden] { display: none; }
.bc-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bc-link:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26, 46, 74, 0.06); }
.bc-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-media-empty { display: grid; place-items: center; }
.bc-logo { width: 44%; height: auto; opacity: 0.45; }
.bc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bc-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.bc-cat { color: var(--teal); font-weight: 600; }
.bc-dot { margin: 0 7px; color: var(--line); }
.bc-title { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.bc-sum { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-more { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.blog-empty { display: none; font-size: 15px; color: var(--muted); margin-top: 20px; }
.blog-empty.show { display: block; }

/* ---------- blog: single post ---------- */
.post { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.post-wrap { max-width: 760px; }
.post-back { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 26px; }
.post-back:hover { color: var(--ink); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bc-author-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.bc-author-link:hover { text-decoration-color: var(--teal); }
.post h1 { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.18; margin-bottom: 28px; }
.post-figure { margin: 8px 0 30px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.post-figure img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
.post-figure figcaption { font-size: 13px; color: var(--faint); padding: 10px 14px; }
.post-body { font-size: 17px; color: var(--text); line-height: 1.7; }
.post-body h2 { font-size: 24px; margin: 34px 0 12px; }
.post-body h3 { font-size: 19px; margin: 26px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); }
.post-body blockquote {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 22px; margin: 24px 0;
  font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink);
}
.post-body img { width: 100%; border-radius: 8px; margin: 10px 0 24px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hashtag { font-size: 12.5px; color: var(--muted); background: var(--paper-deep); border-radius: 100px; padding: 4px 12px; }

.li-cta {
  display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 22px;
  background: var(--ink); border-radius: 10px; text-decoration: none; color: var(--paper);
  transition: background 0.2s ease;
}
.li-cta:hover { background: var(--ink-soft); }
.li-icon { flex: none; width: 34px; height: 34px; color: var(--paper); }
.li-icon svg { width: 100%; height: 100%; }
.li-copy { display: flex; flex-direction: column; }
.li-copy strong { font-size: 15px; }
.li-copy span { font-size: 13px; color: #AAB6C9; }
.li-arrow { margin-left: auto; color: #AAB6C9; }

.post-nav { border-top: 1px solid var(--line-soft); padding: 28px 0 8px; }
.pn-inner { display: flex; justify-content: space-between; gap: 20px; }
.pn-link { display: flex; flex-direction: column; gap: 4px; max-width: 46%; text-decoration: none; }
.pn-next { text-align: right; margin-left: auto; }
.pn-dir { font-size: 12.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.pn-title { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.35; }
.pn-link:hover .pn-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); }

/* ---------- blog: responsive ---------- */
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .filters { gap: 20px 28px; }
  .pn-title { font-size: 15px; }
}

/* ==========================================================================
   COURSE SHELL + INTERACTIVE SETUP
   ========================================================================== */
.course-brand { gap: 14px; }
.course-brand-label {
  padding-left: 14px; border-left: 1px solid var(--line);
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  line-height: 1.2; white-space: nowrap;
}
.page-course-setup { background: var(--paper); }
.page-course-setup [hidden] { display: none !important; }
.page-course-setup .setup-wrap { max-width: 900px; }
.setup-welcome {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: calc(100svh - 75px); padding: clamp(72px, 10vw, 120px) 0;
  text-align: center; isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 151, 167, .12), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(241, 157, 69, .14), transparent 30%),
    linear-gradient(145deg, #FAF9F5 0%, #F6F5EE 100%);
}
.setup-welcome::before, .setup-welcome::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  border: 1px solid rgba(0, 151, 167, .16);
}
.setup-welcome::before {
  width: min(38vw, 480px); aspect-ratio: 1; left: -12%; top: -24%;
}
.setup-welcome::after {
  width: min(30vw, 380px); aspect-ratio: 1; right: -8%; bottom: -20%;
  border-color: rgba(241, 157, 69, .2);
}
.setup-welcome-inner { position: relative; max-width: 930px; }
.setup-welcome .eyebrow { margin-bottom: 22px; color: var(--teal); }
.setup-welcome h1 {
  max-width: none; margin-bottom: 26px;
  font-size: clamp(48px, 8vw, 84px); line-height: 1.02; letter-spacing: -.035em;
}
.setup-welcome .lede {
  max-width: 790px; margin: 0 auto;
  color: var(--text); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.65;
}
.welcome-ready {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 42px; padding: 17px 19px 17px 30px;
  border: 0; border-radius: 100px; background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 28px rgba(26, 46, 74, .18);
  font: 600 17px var(--sans); cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.welcome-ready:hover {
  background: var(--ink-soft); transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(26, 46, 74, .22);
}
.welcome-ready:active { transform: translateY(0) scale(.98); }
.welcome-ready:focus-visible { outline: 3px solid rgba(0,151,167,.35); outline-offset: 4px; }
.welcome-arrow {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--teal); color: #fff; font-size: 21px;
  transition: transform .18s ease;
}
.welcome-ready:hover .welcome-arrow { transform: translateX(3px); }
.setup-workspace {
  padding: 50px 0 70px; background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.setup-card, .progress-shell, .step-card, .completion-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 36px rgba(26, 46, 74, 0.06);
}
.setup-card { padding: clamp(26px, 5vw, 46px); }
.card-heading { max-width: 620px; margin-bottom: 32px; }
.card-heading h2 { font-size: clamp(27px, 4vw, 36px); }
.card-heading > p:last-child { color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choice-grid fieldset { border: 0; min-width: 0; }
.choice-grid legend {
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px;
}
.choice-card {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start; padding: 17px; margin-top: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.choice-card:hover { border-color: var(--ink-soft); }
.choice-card.selected {
  border-color: var(--teal); background: #F2FBFC;
  box-shadow: 0 0 0 1px var(--teal);
}
.choice-card input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(0,151,167,.3); outline-offset: 2px; }
.choice-check {
  width: 19px; height: 19px; border: 1.5px solid var(--muted);
  border-radius: 50%; background: var(--card); margin-top: 2px;
}
.choice-card.selected .choice-check {
  border: 5px solid var(--teal);
}
.choice-card strong { display: block; color: var(--ink); font-size: 15px; }
.choice-card small {
  display: block; color: var(--muted); font-size: 12.5px;
  line-height: 1.45; margin-top: 3px;
}
.route-result {
  display: flex; align-items: center; gap: 9px; margin-top: 26px;
  min-height: 48px; padding: 12px 15px; border-radius: 8px;
  background: var(--paper-deep); color: var(--muted); font-size: 14px;
}
.route-result strong { color: var(--ink); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.setup-actions, .step-actions, .flow-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.course-btn {
  display: inline-flex; align-items: center; justify-content: center;
  appearance: none; border: 0; border-radius: 4px; cursor: pointer;
  padding: 12px 22px; font: 600 14px/1.3 var(--sans);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.course-btn:focus-visible { outline: 3px solid rgba(0,151,167,.34); outline-offset: 2px; }
.course-btn:active:not(:disabled) { transform: scale(.98); }
.course-btn:disabled { opacity: .45; cursor: not-allowed; }
.course-btn-primary { background: var(--ink); color: var(--paper); }
.course-btn-primary:hover:not(:disabled) { background: var(--ink-soft); }
.course-btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.course-btn-secondary:hover:not(:disabled) { background: var(--paper-deep); }
.course-btn-text { background: transparent; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.course-btn-text:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.danger-text { color: #8B3A3A; }
.setup-rules {
  display: grid; grid-template-columns: minmax(190px,.65fr) 1.35fr; gap: 34px;
  margin-top: 24px; padding: 28px 30px; border: 1px solid #E8D8A3;
  border-radius: 10px; background: #FFFCF2;
}
.setup-rules h2 { font-size: 23px; }
.progress-shell {
  padding: 24px 28px; margin-bottom: 22px; box-shadow: 0 7px 24px rgba(26,46,74,.05);
}
.progress-topline, .progress-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.progress-topline .eyebrow { margin-bottom: 3px; }
.progress-topline h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin: 0; }
.progress-topline .course-btn { margin-right: -8px; }
.progress-summary { margin-top: 18px; font-size: 13px; color: var(--muted); }
.progress-summary strong { color: var(--ink); }
.save-status::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 6px; }
.progress-track {
  height: 7px; margin-top: 10px; border-radius: 100px; overflow: hidden;
  background: var(--line-soft);
}
.progress-track span {
  display: block; height: 100%; border-radius: inherit; background: var(--teal);
  transition: width .3s ease;
}
.step-jump {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.step-jump label { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.step-jump select {
  width: min(100%, 520px); padding: 10px 38px 10px 12px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--card);
  color: var(--text); font: 14px var(--sans);
}
.step-jump select:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.step-card { padding: clamp(26px, 5vw, 48px); }
.route-intro {
  margin: -10px 0 32px; padding: 20px 22px; border-left: 3px solid var(--teal);
  background: #F2FBFC; color: var(--text);
}
.route-intro p:last-child, .route-intro ul:last-child { margin-bottom: 0; }
.step-number {
  margin-bottom: 8px; color: var(--teal); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
}
.step-card > h1 { max-width: 720px; font-size: clamp(29px, 4.5vw, 40px); }
.step-copy { color: var(--text); }
.step-copy > * + * { margin-top: 16px; }
.step-copy h3 { font-size: 21px; margin-top: 30px; }
.step-copy ul, .step-copy ol { margin-left: 22px; }
.step-copy li { margin: 8px 0; padding-left: 3px; }
.step-copy a {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--teal);
}
.external-mark { margin-left: 3px; font-size: .8em; text-decoration: none; }
.step-copy code {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper-deep); color: var(--ink); font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.step-copy blockquote {
  margin: 22px 0; padding: 20px 22px; border-left: 3px solid var(--teal);
  border-radius: 0 7px 7px 0; background: var(--paper-deep);
}
.step-copy blockquote > * + * { margin-top: 12px; }
.codex-handoff {
  margin-top: 34px; padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(0,151,167,.35); border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(0,151,167,.1), transparent 36%),
    #F4FBFB;
}
.codex-handoff-heading { max-width: 700px; }
.codex-handoff-heading .eyebrow { margin-bottom: 8px; color: var(--teal); }
.codex-handoff-heading h2 { font-size: clamp(25px, 3.5vw, 32px); }
.codex-handoff-heading > p:last-child { color: var(--muted); }
.handoff-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 26px 0 0; list-style: none; counter-reset: none;
}
.handoff-steps li {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start;
  min-width: 0; padding: 15px; border: 1px solid rgba(0,151,167,.18);
  border-radius: 8px; background: rgba(255,255,255,.72);
}
.handoff-steps li > span {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 600;
}
.handoff-steps strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; }
.handoff-steps small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.handoff-alt, .handoff-fallback { margin-top: 13px; color: var(--muted); font-size: 13px; }
.handoff-alt a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--teal); }
.handoff-safety {
  margin-top: 22px; padding: 14px 16px; border-left: 3px solid #D89C32;
  background: #FFF9E8; color: var(--text); font-size: 13px;
}
.handoff-safety strong { color: var(--ink); }
.command-block {
  margin: 18px 0; overflow: hidden; border-radius: 8px;
  background: #17243A; color: #F5F7FA;
}
.command-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.12);
  color: #B8C4D6; font: 12px var(--sans); text-transform: uppercase; letter-spacing: .08em;
}
.copy-command {
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
  background: transparent; color: #F5F7FA; padding: 5px 10px;
  font: 600 12px var(--sans); cursor: pointer;
}
.copy-command:hover { background: rgba(255,255,255,.1); }
.command-block pre { overflow-x: auto; padding: 18px; }
.command-block code {
  border: 0; padding: 0; background: transparent; color: inherit;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.troubleshooting {
  margin-top: 36px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); overflow: hidden;
}
.troubleshooting summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; color: var(--ink); font-weight: 600; cursor: pointer;
  list-style: none;
}
.troubleshooting summary::-webkit-details-marker { display: none; }
.troubleshooting summary:focus-visible { outline: 3px solid rgba(0,151,167,.3); outline-offset: -3px; }
.detail-icon { font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.troubleshooting[open] .detail-icon { transform: rotate(45deg); }
.trouble-body { padding: 0 22px 24px; border-top: 1px solid var(--line-soft); }
.trouble-body ul { list-style: none; margin-left: 0; }
.trouble-body li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.trouble-body li:last-child { border-bottom: 0; }
.step-actions { justify-content: space-between; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.flow-tools { justify-content: space-between; margin-top: 10px; }
.completion-card { padding: clamp(34px, 7vw, 64px); text-align: center; }
.completion-mark {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px;
  border-radius: 50%; background: #E6F8F3; color: #087A68; font-size: 28px; font-weight: 600;
}
.completion-card h1 { max-width: 650px; margin-left: auto; margin-right: auto; }
.completion-card > p:not(.eyebrow) { max-width: 620px; margin: 0 auto; color: var(--muted); }
.completion-summary {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px;
  margin: 28px auto 0; padding: 18px; max-width: 620px;
  border-radius: 8px; background: var(--paper-deep); color: var(--ink); font-size: 14px;
}
.completion-card .setup-actions { justify-content: center; }
.setup-help { padding: 64px 0; }
.help-card {
  padding: clamp(26px, 5vw, 42px); border-left: 3px solid var(--teal);
  background: var(--card);
}
.help-card h2 { max-width: 660px; }
.help-card > p:last-child { max-width: 760px; color: var(--muted); }

@media (max-width: 760px) {
  .course-brand-label { font-size: 15px; }
  .choice-grid, .setup-rules { grid-template-columns: 1fr; }
  .setup-rules { gap: 12px; }
  .progress-topline, .progress-summary, .step-jump {
    align-items: flex-start; flex-direction: column;
  }
  .step-jump select { width: 100%; }
  .handoff-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .course-brand { gap: 9px; }
  .course-brand-label { max-width: 112px; padding-left: 9px; white-space: normal; font-size: 13px; }
  .setup-welcome {
    min-height: calc(100svh - 67px); padding: 64px 0;
    text-align: left; place-items: center start;
  }
  .setup-welcome .lede { font-size: 18px; }
  .welcome-ready { margin-top: 34px; }
  .setup-workspace { padding-top: 30px; }
  .setup-card, .progress-shell, .step-card, .completion-card { border-radius: 8px; }
  .setup-meta { align-items: flex-start; flex-direction: column; }
  .setup-actions, .step-actions, .flow-tools { align-items: stretch; flex-direction: column; }
  .course-btn { width: 100%; text-align: center; }
  .step-actions .course-btn-primary { order: -1; }
  .save-status { display: block; }
}
