/* Fonts: Bricolage Grotesque (headings) and Instrument Sans (text), hosted with the site.
   Both are open-source under the SIL Open Font License (see assets/fonts/OFL-*.txt). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff') format('woff');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-italic.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* First Tech Hub Solutions — site styles
   Brand palette only: brand brown from the logo, deep brown, warm neutrals, gold accent. */
:root {
  --brand: #5B2E0F;        /* logo brown */
  --brand-deep: #3B1D09;   /* headings, dark sections, primary buttons */
  --brand-soft: #7A4424;
  --body: #5E4A3C;         /* body text */
  --muted: #6E5A4B;        /* captions */
  --cream: #F6F3EC;        /* page background */
  --sand: #ECE8DF;
  --tint: #F1E4D8;         /* pills, icon tiles */
  --line: #DDD7CA;
  --field: #CFC8B8;
  --white: #FFFFFF;
  --gold: #F2B23E;         /* accent: enroll/pay buttons, numbers */
  --gold-hover: #E6A020;
  --on-dark: #EAD9C8;
  --on-dark-muted: #E3D3C3;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(59, 29, 9, 0.08);
  --gutter: clamp(16px, 6vw, 120px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brand-deep);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.06; color: var(--brand-deep); }
p { margin: 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); }
.h-section { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 16px/1.2 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: var(--gold-hover); color: var(--brand-deep); }
.btn-dark { background: var(--brand-deep); color: var(--cream); }
.btn-dark:hover { background: var(--brand); color: var(--cream); }
.btn-outline { border-color: var(--brand-deep); color: var(--brand-deep); background: transparent; }
.btn-outline:hover { background: var(--brand-deep); color: var(--cream); }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 17px; }
.btn-block, .enroll-form .btn { white-space: normal; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 13px; font-weight: 700; }
.pill-gold { background: #FBEBC9; color: #6B4A09; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--cream); font-size: 14px; font-weight: 600; }

/* Announcement bar */
.announce { background: var(--brand-deep); color: var(--cream); font-size: 15px; text-align: center; padding: 10px var(--gutter); }
.announce a { color: var(--gold); font-weight: 700; margin-left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 47px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--brand); letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 30px; font-weight: 500; }
.nav a { color: var(--brand-deep); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--brand-deep); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 1.02; }
.hero-actions { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.link-strong { font-weight: 700; color: var(--brand-deep); }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 600; color: #3F2A1C; }
.ticks span { display: inline-flex; gap: 8px; align-items: center; }
.tick { width: 20px; height: 20px; flex-shrink: 0; }

.hero-visual { position: relative; padding-bottom: 100px; }
.lms-card { position: relative; margin-left: auto; width: min(540px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.lms-top { display: flex; justify-content: space-between; align-items: center; }
.lms-top small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.lms-top strong { font-family: var(--display); font-size: 22px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.lms-course { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.lms-course-head { background: var(--brand); color: var(--cream); padding: 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.lms-course-head small { color: #E8C8A8; font-weight: 600; font-size: 13px; }
.lms-course-head strong { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.lms-course-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress i { display: block; width: 6%; height: 100%; background: var(--brand); border-radius: 999px; }
.lms-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 14px; background: var(--cream); font-weight: 600; }
.lms-row small { font-weight: 500; color: var(--muted); font-size: 13px; }
.toast { position: absolute; left: 0; bottom: 0; width: 330px; max-width: 90%; background: var(--brand-deep); color: var(--cream); border-radius: var(--radius-md); padding: 20px 22px; display: flex; gap: 14px; box-shadow: 0 20px 50px rgba(59, 29, 9, 0.25); }
.toast-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--gold); display: grid; place-items: center; }
.toast strong { display: block; }
.toast span { font-size: 14px; color: var(--on-dark-muted); }

/* Feature strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 40px; border-block: 1px solid var(--line); }
.strip h3 { font-size: 20px; margin-bottom: 8px; }
.strip p { font-size: 15px; color: var(--body); }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 440px; color: var(--body); font-size: 18px; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.course-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.course-card h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.course-card p { color: var(--body); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.course-card.dark { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.course-card.dark h3 { color: var(--cream); }
.course-card.dark p { color: var(--on-dark); }
.course-card.dark .pill { background: var(--brand-soft); color: #F3E3D3; }

/* How it works */
.how { background: var(--brand); color: var(--cream); }
.how h2 { color: var(--cream); }
.how .eyebrow { color: #E8C8A8; }
.how .lead { color: var(--on-dark); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.step { border-top: 2px solid var(--gold); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step b { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }
.step h3 { color: var(--cream); font-size: 22px; }
.step p { color: var(--on-dark); font-size: 16px; }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { color: var(--body); font-size: 16px; }

/* Founder */
.founder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.founder img { width: 100%; height: 620px; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
.founder-copy { display: flex; flex-direction: column; gap: 24px; }
.founder-quote { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.founder-sign { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.founder-sign strong { display: block; font-size: 18px; }

/* Testimonials */
.testimonials { background: var(--sand); }
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.t-card { margin: 0; background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.t-card blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.t-card figcaption strong { display: block; }
.t-card figcaption span { font-size: 14px; color: var(--muted); }

/* FAQs */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 12px; color: var(--body); }

/* CTA band */
.cta { background: var(--gold); border-radius: 32px; padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; }
.cta p { margin-top: 12px; color: var(--brand-deep); font-size: 18px; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--brand-deep); color: var(--on-dark-muted); padding-block: 80px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand span { color: var(--cream); }
.footer-brand p { font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col strong { color: var(--cream); }
.footer-col a, .footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid #5A3A22; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.socials { display: flex; gap: 22px; flex-wrap: wrap; }

/* Course page */
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.course-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-block: 56px 96px; }
.course-main { display: flex; flex-direction: column; gap: 28px; }
.course-main h1 { font-size: clamp(38px, 4.8vw, 60px); font-weight: 800; }
.course-main h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; margin-bottom: 20px; }
.course-block { padding-top: 24px; }
.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.learn-item { display: flex; gap: 12px; align-items: flex-start; }
.learn-item .tick { margin-top: 3px; }
.learn-item strong { display: block; font-size: 17px; }
.learn-item span { font-size: 15px; color: var(--body); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat span { font-weight: 600; font-size: 15px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.who-chips span { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.outline-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); flex-wrap: wrap; }
.outline-card > div { display: flex; gap: 16px; align-items: center; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; flex-shrink: 0; }
.outline-card strong { display: block; font-size: 18px; }

.enroll-card { position: sticky; top: 104px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); }
.enroll-price small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.enroll-price strong { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.enroll-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.enroll-list span { display: flex; gap: 10px; align-items: center; }
.divider { height: 1px; background: var(--sand); }
.enroll-form { display: flex; flex-direction: column; gap: 16px; }
.enroll-form h2 { font-size: 22px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { height: 52px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 12px; font: 16px var(--text); color: var(--brand-deep); background: var(--white); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 178, 62, 0.45); }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: #FBE3DC; color: #7A2412; font-size: 14px; }
.form-error.show { display: block; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; }
.small-note { font-size: 13px; color: var(--muted); text-align: center; }
.mini-steps { background: var(--brand); color: var(--cream); border-radius: 28px; padding: 56px 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 96px; }
.mini-steps b { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--gold); }
.mini-steps strong { display: block; font-size: 18px; margin: 6px 0; }
.mini-steps span { font-size: 15px; color: var(--on-dark); }

/* Success page */
.status-wrap { min-height: calc(100vh - 81px); display: grid; place-items: center; padding: 48px var(--gutter); }
.status-card { width: min(640px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; box-shadow: var(--shadow); }
.status-icon { width: 88px; height: 88px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; }
.status-icon.warn { background: var(--gold); }
.status-card h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.status-card p { color: var(--body); font-size: 18px; }
.ref-box { width: 100%; background: var(--cream); border-radius: 16px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; flex-wrap: wrap; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--tint); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.legal h1 { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }

/* Responsive */
/* Header: full menu on laptops, compact on small laptops, menu button on tablets/phones */
@media (max-width: 1539px) {
  .nav .hide-lg { display: none; }
}
@media (max-width: 1439px) {
  .nav { gap: 22px; font-size: 15px; }
  .header-actions .btn { padding: 10px 18px; font-size: 15px; min-height: 44px; }
}
@media (max-width: 1239px) {
  .nav .hide-md { display: none; }
  .nav { gap: 26px; }
}
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav a { padding: 12px 0; font-weight: 600; color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--sand); }
}
@media (max-width: 960px) {
  .hero, .founder, .course-layout, .faq-wrap { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .strip, .steps, .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid, .value-grid, .t-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
  .enroll-card { position: static; }
  .founder img { height: 520px; }
  .faq-wrap { gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .brand img { width: 34px; height: 40px; }
  .brand span { font-size: 16px; }
  .header-actions .btn-gold { display: none; }
  .lms-card { padding: 20px; }
  .toast { left: 12px; }
  .strip, .steps, .course-grid, .value-grid, .t-grid, .learn-grid, .mini-steps, .stat-grid { grid-template-columns: 1fr; }
  .strip { gap: 24px; }
  .mini-steps { padding: 36px 28px; border-radius: 24px; }
  .course-card, .enroll-card { padding: 24px; }
  .founder img { height: 420px; }
  .cta-actions, .cta-actions .btn, .hero-actions .btn-dark { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .announce { font-size: 13px; }
}

/* =====================================================================
   MOTION & INTERACTION
   Everything here animates only transform/opacity (smooth on phones)
   and is switched off for people who ask their device for less motion.
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .75, .2, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }
html { -webkit-tap-highlight-color: transparent; }
section[id], [id="enroll"] { scroll-margin-top: 96px; }
::selection { background: var(--gold); color: var(--brand-deep); }

/* Page-load entrance (hero text, course page top) */
.js .hero-in { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="wipe"] { transform: none; opacity: 1; }
.founder-photo { position: relative; }
.js .founder-photo::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: bottom; transition: transform 1.1s var(--ease); z-index: 1; }
.js .founder-photo.in::after { transform: scaleY(0); }
.js [data-reveal].in { opacity: 1; transform: none; }
.founder-photo { overflow: hidden; border-radius: var(--radius-lg); }
.founder-photo img { transition: transform 1.6s var(--ease); transform: scale(1.12); }
.founder-photo.in img, .no-js .founder-photo img { transform: scale(1); }

/* Highlighted words in the hero headline */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; background: var(--gold); border-radius: 6px; z-index: -1; transform: scaleX(0); transform-origin: left; animation: swipe .8s var(--ease) 1s forwards; }
.no-js .hl::after { transform: none; }
@keyframes swipe { to { transform: scaleX(1); } }

/* Hero background circuit (echoes the logo) */
.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap .hero { position: relative; z-index: 1; }
.hero-circuit { position: absolute; top: 0; right: 0; width: 55%; height: 100%; color: #E5D6C6; pointer-events: none; }
.hero-circuit .trace, .hero-circuit .hex-outline { stroke-dasharray: 520; stroke-dashoffset: 520; animation: trace 2.4s var(--ease) forwards; }
.hero-circuit .trace:nth-child(2) { animation-delay: .3s; } .hero-circuit .trace:nth-child(3) { animation-delay: .6s; }
.hero-circuit .trace:nth-child(4) { animation-delay: .9s; } .hero-circuit .trace:nth-child(5) { animation-delay: 1.1s; }
.hero-circuit .hex-outline { animation-delay: 1.2s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.hero-circuit .node { color: var(--gold); transform-box: fill-box; transform-origin: center; animation: node 3s ease-in-out infinite; }
.hero-circuit .node:nth-child(2n) { animation-delay: 1s; } .hero-circuit .node:nth-child(3n) { animation-delay: 2s; }
@keyframes node { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.3); opacity: 1; } }

/* Hero LMS demo: card floats, progress fills, payment toast pops, course unlocks */
.hero-visual { padding-bottom: 100px; }
.float-wrap { animation: floaty 6s ease-in-out 1.4s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.js .lms-card { opacity: 0; transform: translateY(50px) rotate(2deg) scale(.96); animation: card-in 1.1s var(--ease) .35s forwards; }
@keyframes card-in { to { opacity: 1; transform: none; } }
.lms-progress-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--body); }
.lms-progress-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.progress i { width: 0; transition: width 1.6s var(--ease); }
.demo-start { align-self: flex-start; min-height: 44px; position: relative; }
.demo-start::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--gold); opacity: 0; animation: ring 2.4s ease-out 2.2s infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.92); } 80%, 100% { opacity: 0; transform: scale(1.18); } }
.lms-row { transition: background .5s, box-shadow .5s, transform .5s var(--ease-back); }
.lms-row small { transition: color .3s; white-space: nowrap; margin-left: 12px; }
.lms-row.unlocked { background: var(--tint); box-shadow: inset 0 0 0 2px var(--brand); transform: scale(1.02); }
.lms-row.unlocked small { color: var(--brand); font-weight: 700; }
.js .toast { opacity: 0; transform: translateY(24px) scale(.9); transition: opacity .45s var(--ease), transform .6s var(--ease-back); }
.js .toast.show { opacity: 1; transform: none; }
.no-js .progress i { width: 35%; }

/* Skills marquee */
.marquee { background: var(--brand-deep); color: var(--cream); overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 40px; padding-right: 40px; }
.marquee-group span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.hexdot { color: var(--gold); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Buttons */
.btn { transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .25s; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn-gold { box-shadow: 0 6px 18px rgba(242, 178, 62, .35); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-dark:hover, .btn-gold:hover { box-shadow: 0 12px 26px rgba(59, 29, 9, .22); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-pay { position: relative; overflow: hidden; }
.btn-pay::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out 1.5s infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

/* Live dot on "Enrolling now" */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2F8F5B; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(47, 143, 91, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47, 143, 91, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 143, 91, 0); } }

/* Cards */
/* Reveal uses "transform", hover uses "translate", so each keeps its own speed */
.course-card, .value, .t-card, .stat,
.js .course-card[data-reveal], .js .value[data-reveal], .js .stat[data-reveal] {
  transition: opacity .9s var(--ease), transform .9s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms;
}
.chip { transition: background .2s, color .2s; }
@media (hover: hover) {
  .course-card:hover, .value:hover, .stat:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(59, 29, 9, .1); border-color: #CDB9A4; }
  .course-card:hover .chip { background: var(--tint); }
  .course-card.dark:hover { box-shadow: 0 22px 44px rgba(59, 29, 9, .3); }
  .t-card:hover { translate: 0 -4px; }
  .value:hover .v-icon { transform: rotate(-8deg) scale(1.08); background: var(--gold); color: var(--brand-deep); }
}
.v-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; transition: transform .35s var(--ease-back), background .3s, color .3s; }

/* How-it-works lines draw across */
.how-head, .value-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.value-head { margin-bottom: 48px; }
.step { border-top: 0; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
.step.in::before, .no-js .step::before { transform: scaleX(1); }

/* Testimonials carousel */
.carousel .section-head { align-items: flex-end; }
.section-head > .carousel-ctrl { display: flex; flex-direction: row; gap: 10px; }
.c-btn { width: 50px; height: 50px; border-radius: 999px; border: 1.5px solid var(--brand-deep); background: transparent; color: var(--brand-deep); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.c-btn:hover { background: var(--brand-deep); color: var(--cream); }
.c-btn:active { transform: scale(.94); }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 4px 16px; margin: -8px -4px 0; overscroll-behavior-x: contain; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; }
.quote-mark { color: var(--gold); }
.t-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--brand); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: #CDB9A4; transition: width .35s var(--ease), background .35s; }
.dots i.on { width: 28px; background: var(--brand); }

/* FAQ open/close */
.faq-list summary { transition: color .2s; }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary::after { content: ""; width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; background: linear-gradient(var(--brand), var(--brand)) center / 14px 2.5px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { content: ""; transform: rotate(135deg); }
.faq-a { overflow: hidden; }

/* CTA band floating hexagons */
.cta { position: relative; overflow: hidden; }
.cta > div { position: relative; z-index: 1; }
.cta-hex { position: absolute; color: rgba(59, 29, 9, .14); pointer-events: none; }
.cta-hex-1 { width: 220px; right: 22%; top: -70px; animation: spin-slow 40s linear infinite; }
.cta-hex-2 { width: 130px; left: 46%; bottom: -60px; animation: spin-slow 30s linear infinite reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Header on scroll */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(59, 29, 9, .08); background: rgba(246, 243, 236, .98); }
.brand img { transition: transform .5s var(--ease-back); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }

/* Mobile menu: animated icon + sliding panel */
.menu-btn { position: relative; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2.2px; border-radius: 2px; background: var(--brand-deep); transition: transform .35s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.mobile-nav-actions .btn { padding: 12px 24px !important; border-bottom-style: solid !important; }
.mobile-nav-actions .btn-outline { border: 1.5px solid var(--brand-deep) !important; }
.mobile-nav-actions .btn-gold { border: 1.5px solid var(--gold) !important; }
.mobile-only { display: none; }

/* Sticky enroll bar (course pages, phones and tablets) */
.buybar { display: none; }

/* Success page: pop + check draw + confetti */
.status-card { position: relative; overflow: hidden; }
.status-icon.pop { animation: pop .7s var(--ease-back) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.status-icon .draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: fall var(--t, 2.6s) var(--ease) var(--delay, 0s) forwards; }
@keyframes fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x, 0), 560px, 0) rotate(var(--r, 540deg)); } }

/* ---------- Mobile & tablet layout ---------- */
@media (max-width: 959px) {
  .mobile-nav { display: block; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); border-top: 1px solid transparent; }
  .mobile-nav.open { max-height: 80vh; border-top-color: var(--line); overflow-y: auto; }
  .mobile-nav-inner { display: flex; flex-direction: column; padding: 8px var(--gutter) 22px; }
  .mobile-nav.open { display: block; padding: 0; }
  .mobile-nav-inner > a { padding: 15px 0; font-size: 18px; font-weight: 600; color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--sand); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease); }
  .mobile-nav.open .mobile-nav-inner > a { opacity: 1; transform: none; }
  .mobile-nav.open .mobile-nav-inner > a:nth-child(2) { transition-delay: .04s; } .mobile-nav.open .mobile-nav-inner > a:nth-child(3) { transition-delay: .08s; }
  .mobile-nav.open .mobile-nav-inner > a:nth-child(4) { transition-delay: .12s; } .mobile-nav.open .mobile-nav-inner > a:nth-child(5) { transition-delay: .16s; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 960px) {
  .hero-circuit { width: 100%; opacity: .5; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .course-grid .course-card.dark { grid-column: 1 / -1; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .mobile-only { display: inline-flex; align-self: flex-start; }
  body.has-buybar .buybar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; align-items: center; justify-content: space-between; gap: 14px; background: var(--brand-deep); color: var(--cream); border-radius: 20px; padding: 12px 12px 12px 20px; box-shadow: 0 18px 40px rgba(59, 29, 9, .35); transform: translateY(150%); transition: transform .45s var(--ease); }
  body.has-buybar .buybar.show { transform: none; }
  .buybar small { display: block; font-size: 12px; color: var(--on-dark-muted); max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar strong { font-family: var(--display); font-size: 22px; }
  body.has-buybar .site-footer { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .hero-circuit { display: none; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-strong { width: 100%; text-align: center; }
  .hero-visual { padding-bottom: 88px; }
  .lms-course-head { min-height: 120px; padding: 22px; }
  .lms-course-head strong { font-size: 22px; }
  .marquee { padding: 14px 0; }
  .marquee-group span { font-size: 16px; }
  .t-track { grid-auto-columns: 86%; gap: 16px; }
  .section-head > .carousel-ctrl { display: none; }
  .t-card { padding: 26px; }
  .section-head { margin-bottom: 32px; }
  .value-head { margin-bottom: 32px; }
  .faq-list summary { font-size: 18px; }
  .cta-hex-1 { right: -60px; }
  .cta-hex-2 { left: 60%; }
  .course-main h1 { font-size: clamp(34px, 9.5vw, 44px); }
  .course-layout { padding-top: 28px; gap: 36px; }
  .mobile-only { width: 100%; }
  .outline-card .btn { width: 100%; }
  .status-card p { font-size: 16px; }
  .footer-bottom { flex-direction: column; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track, .float-wrap, .cta-hex, .btn-pay::before, .demo-start::after, .live-dot, .hero-circuit .node { animation: none !important; }
  .js [data-reveal], .js .hero-in, .js .lms-card { opacity: 1 !important; transform: none !important; }
  .js .founder-photo::after { display: none; }
}
.t-card figcaption .t-avatar { color: var(--cream); font-size: 15px; }

.enroll-price .charge-note { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* ===== Keyword section: skills for remote work ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.skill-col { border-top: 3px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.skill-col h3 { font-size: 24px; }
.skill-col p { color: var(--body); font-size: 16px; }
.skill-col .link-strong { margin-top: auto; }

/* ===== Contact page ===== */
.contact-hero { display: flex; flex-direction: column; gap: 22px; padding-block: 56px 40px; max-width: 900px; margin-left: 0; }
.contact-hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; padding-bottom: 40px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form h2 { font-size: 26px; }
.contact-form .btn { align-self: flex-start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field select, .field textarea { border: 1.5px solid var(--field); border-radius: 12px; font: 16px var(--text); color: var(--brand-deep); background: var(--white); }
.field select { height: 52px; padding: 0 14px; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B2E0F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 150px; line-height: 1.5; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 178, 62, 0.45); }
.optional { font-weight: 500; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 24px 0; }
.contact-done h2 { font-size: 30px; }
.contact-done p { color: var(--body); }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-tile { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--brand-deep); }
.contact-tile .v-icon { margin: 0; flex-shrink: 0; }
.contact-tile strong { display: block; font-family: var(--display); font-size: 18px; }
.contact-tile span span { display: block; font-weight: 600; }
.contact-tile small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.contact-tile { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .3s var(--ease), box-shadow .3s, border-color .3s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
@media (hover: hover) { .contact-tile:hover { translate: 4px 0; border-color: #CDB9A4; box-shadow: 0 14px 30px rgba(59, 29, 9, .08); } .contact-tile:hover .v-icon { background: var(--gold); color: var(--brand-deep); } }
.contact-social { padding: 20px 22px; border-radius: 20px; background: var(--brand-deep); color: var(--cream); display: flex; flex-direction: column; gap: 12px; }
.socials-row { display: flex; flex-wrap: wrap; gap: 10px; }
.socials-row a { color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid #5A3A22; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.socials-row a:hover { background: var(--gold); color: var(--brand-deep); border-color: var(--gold); }
@media (max-width: 960px) {
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .contact-hero { padding-top: 32px; }
}

/* =====================================================================
   BLOG & RESOURCES
   ===================================================================== */
.blog-hero { display: flex; flex-direction: column; gap: 22px; padding-block: 56px 16px; max-width: 980px; margin-left: 0; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; }
.blog-tools { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.search-box { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; background: var(--white); border: 1.5px solid var(--field); border-radius: 999px; max-width: 620px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 178, 62, .45); }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; font: 16px var(--text); color: var(--brand-deep); min-width: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1.5px solid var(--line); background: var(--white); color: var(--brand-deep); padding: 9px 16px; border-radius: 999px; font: 600 14px var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.filter-chip:hover { border-color: var(--brand); }
.filter-chip.on { background: var(--brand-deep); color: var(--cream); border-color: var(--brand-deep); }
.filter-chip:active { transform: scale(.96); }
.chips-row.small .filter-chip { padding: 6px 12px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--body); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty-state strong { font-family: var(--display); font-size: 22px; color: var(--brand-deep); }

/* Covers generated when a post has no image */
.post-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-cover.gen { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; color: var(--cream); background: var(--brand); }
.post-cover.gen span { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(246, 243, 236, .16); position: relative; z-index: 1; }
.post-cover.gen strong { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.12; letter-spacing: -.01em; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cover.gen .gen-hex { position: absolute; width: 58%; right: -12%; top: -22%; color: rgba(246, 243, 236, .12); transition: transform .8s var(--ease); }
.post-cover.gen.cat-google-workspace { background: var(--brand); }
.post-cover.gen.cat-upwork-and-freelancing { background: var(--brand-deep); }
.post-cover.gen.cat-remote-work { background: #7A4424; }
.post-cover.gen.cat-career-tips { background: #3F2A1C; }
.post-cover.gen.cat-upwork-and-freelancing .gen-hex, .post-cover.gen.cat-career-tips .gen-hex { color: rgba(242, 178, 62, .22); }
.post-cover.big { border-radius: var(--radius-lg); }
.post-cover.gen.big { aspect-ratio: 21 / 9; padding: clamp(24px, 4vw, 48px); }
.post-cover.gen.big strong { font-size: clamp(26px, 3.4vw, 44px); -webkit-line-clamp: 4; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card, .post-featured { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.js .post-card[data-reveal], .js .post-featured[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .35s var(--ease), box-shadow .35s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
.post-card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.post-card-link:focus-visible { outline-offset: -3px; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 21px; line-height: 1.2; }
.post-card p { color: var(--body); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) {
  .post-card:hover, .post-featured:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(59, 29, 9, .1); }
  .post-card:hover .post-cover img, .post-featured:hover .post-cover img { transform: scale(1.05); }
  .post-card:hover .gen-hex, .post-featured:hover .gen-hex { transform: rotate(18deg) scale(1.06); }
  .post-card:hover h3 { color: var(--brand); }
}
.post-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 24px; }
.post-featured .post-cover { border-radius: 0; aspect-ratio: auto; min-height: 340px; height: 100%; }
.post-featured-body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-featured-body .pill { align-self: flex-start; }
.post-featured h2 { font-size: clamp(26px, 2.8vw, 38px); }
.post-featured p { color: var(--body); font-size: 17px; }
.post-featured .post-meta { margin-top: 0; }

/* Article page */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.post { padding-top: 40px; }
.post-head { max-width: 860px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; }
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-byline img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; object-position: top; }
.post-byline strong { display: block; }
.post-byline span { font-size: 14px; color: var(--muted); }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; margin-top: 44px; align-items: start; }
.post-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }
.toc strong, .share strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--brand-deep); }
.toc a.on { color: var(--brand-deep); font-weight: 700; border-left-color: var(--gold); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--white); color: var(--brand-deep); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.share-btn:hover { background: var(--brand-deep); color: var(--cream); border-color: var(--brand-deep); transform: translateY(-2px); }
.copy-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--brand-deep); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 80; transition: transform .35s var(--ease); }
.copy-toast.show { transform: translate(-50%, 0); }

/* Article typography */
.prose { max-width: 740px; font-size: 18px; line-height: 1.75; color: #3F2A1C; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.9em; line-height: 1.15; scroll-margin-top: 100px; position: relative; }
.prose h3 { font-size: 22px; margin-top: 1.6em; scroll-margin-top: 100px; position: relative; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose .anchor { margin-left: 10px; color: var(--gold); text-decoration: none; opacity: 0; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { color: var(--brand-deep); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose li.task { list-style: none; margin-left: -1.3em; display: flex; gap: 12px; align-items: flex-start; }
.prose .check { width: 22px; height: 22px; flex-shrink: 0; margin-top: 4px; border-radius: 6px; border: 2px solid var(--brand); }
.prose .check.done { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F3EC' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 24px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); font-family: var(--display); font-size: 21px; line-height: 1.45; color: var(--brand-deep); }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; background: var(--tint); color: var(--brand-deep); padding: 2px 7px; border-radius: 6px; }
.prose pre { background: var(--brand-deep); color: var(--cream); padding: 18px 20px; border-radius: 16px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose img, .prose figure img { border-radius: 16px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.prose th { background: var(--tint); font-family: var(--display); color: var(--brand-deep); }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 18px 20px 18px 22px; border-radius: 16px; background: #FBEBC9; border: 1px solid #F0D398; }
.callout strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.callout p { margin: 0; font-size: 17px; }
.callout-note { background: var(--tint); border-color: #E3CBB5; }
.callout-warning { background: #FBE3DC; border-color: #F1BFB1; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--brand-deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-radius: 22px; background: var(--brand); color: var(--cream); margin-top: 2em !important; }
.post-cta .eyebrow { color: #E8C8A8; }
.post-cta strong { display: block; font-family: var(--display); font-size: 22px; color: var(--cream); margin: 4px 0; }
.post-cta p { margin: 0; color: var(--on-dark); font-size: 16px; line-height: 1.5; }
.post-cta .btn { flex-shrink: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em !important; }
.post-tags a { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--brand-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.post-tags a:hover { border-color: var(--brand); }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); margin-top: 2em !important; }
.author-box img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; object-position: top; flex-shrink: 0; }
.author-box strong { font-family: var(--display); font-size: 19px; }
.author-box p { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2em !important; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--brand-deep); font-weight: 700; line-height: 1.35; font-size: 16px; transition: border-color .2s, translate .3s var(--ease); }
.post-nav a:hover { border-color: var(--brand); translate: 0 -3px; }
.post-nav a small { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav a.next { text-align: right; }
.related { padding-bottom: 32px; }

/* Newsletter */
.newsletter { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: 32px; background: var(--gold); }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 8px 0 10px; }
.newsletter .eyebrow { color: var(--brand-deep); }
.newsletter p { color: var(--brand-deep); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type=email] { flex: 1 1 220px; height: 56px; border-radius: 999px; border: 1.5px solid transparent; padding: 0 22px; font: 16px var(--text); color: var(--brand-deep); background: var(--white); }
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--brand-deep); }
.newsletter-form .btn { height: 56px; }
.newsletter-form .form-msg { flex-basis: 100%; margin: 0; font-weight: 600; font-size: 15px; min-height: 1.4em; }
.newsletter-form .form-msg.err { color: #7A2412; }
.newsletter-form.done input { opacity: .6; }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.res-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.js .res-card[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .35s var(--ease), box-shadow .35s, border-color .35s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
.res-card.featured { border-color: #E6C68F; box-shadow: inset 0 0 0 1px #E6C68F; }
@media (hover: hover) { .res-card:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(59, 29, 9, .1); } .res-card:hover .res-icon { background: var(--gold); color: var(--brand-deep); transform: rotate(-6deg); } }
.res-top { display: flex; align-items: center; gap: 14px; }
.res-top .pill { margin-left: auto; }
.res-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, color .3s, transform .35s var(--ease-back); }
.res-type { display: block; font-weight: 700; font-size: 14px; }
.res-cat { display: block; font-size: 13px; color: var(--muted); }
.res-card h3 { font-size: 22px; line-height: 1.2; }
.res-card > p { color: var(--body); font-size: 15px; }
.res-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand); }
.res-more > div { font-size: 15px; color: var(--body); margin-top: 8px; }
.res-more ul { padding-left: 1.2em; margin: 0; }
.res-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.res-note { font-size: 13px; color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(28, 14, 4, .55); opacity: 0; transition: opacity .25s; }
.modal.open { opacity: 1; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream); border-radius: 28px; padding: 32px; box-shadow: 0 40px 80px rgba(28, 14, 4, .35); transform: translateY(20px) scale(.97); transition: transform .35s var(--ease-back); }
.modal.open .modal-card { transform: none; }
.modal-card form, .lead-done { display: flex; flex-direction: column; gap: 14px; }
.modal-card h2 { font-size: 26px; }
.lead-done { align-items: center; text-align: center; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; color: var(--brand-deep); }

/* Homepage: latest posts */
.latest-posts { padding-top: 0; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; gap: 28px; }
  .post-side { position: static; order: 2; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .post-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .newsletter { grid-template-columns: 1fr; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .post-grid, .res-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 32px; }
  .prose { font-size: 17px; }
  .post-cover.gen.big { aspect-ratio: 16 / 10; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
  .newsletter-form .btn { width: 100%; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .chips-row::-webkit-scrollbar { display: none; }
  .filter-chip { white-space: nowrap; }
  .author-box { flex-direction: column; }
  .modal-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }
.blog-hero .pill { align-self: flex-start; }
.post-featured .post-cover, .post-featured .post-cover.gen.big { aspect-ratio: auto; width: 100%; }
@media (max-width: 960px) { .post-featured .post-cover, .post-featured .post-cover.gen.big { aspect-ratio: 16 / 9; min-height: 0; } }
.newsletter > .cta-hex { position: absolute; }
.post-cover.gen { justify-content: space-between; }
.post-cover.gen .gen-icon { position: relative; z-index: 1; width: clamp(56px, 22%, 96px); height: auto; align-self: flex-end; color: var(--gold); opacity: .95; transition: transform .6s var(--ease-back); }
.post-cover.gen .gen-hex.two { width: 34%; right: auto; left: -8%; top: auto; bottom: -26%; color: rgba(246, 243, 236, .08); }
.post-cover.gen.big .gen-icon { width: clamp(90px, 18%, 150px); }
@media (hover: hover) { .post-card:hover .gen-icon, .post-featured:hover .gen-icon { transform: scale(1.1) rotate(-6deg); } }
.post-head { margin-bottom: 8px; }
