/* ── Design Tokens ─────────────────────────────────────────────────────────
   Five-colour system + typography + spacing — sourced from wireframe verbatim.
   All values here are the single source of truth; do not override in other files.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Colour palette */
  --ink:     #1E293B;                  /* Slate Gray — primary text */
  --paper:   #FFFFFF;                  /* Pure White — page background */
  --accent:  #0EA5E9;                  /* Electric Sky — links, highlights */
  --amber:   #F59E0B;                  /* Warm Amber — CTAs, accents */
  --surface: #F8FAFC;                  /* Soft Mist — alternate section bg */
  --muted:   #64748B;                  /* slate-500 — secondary text */
  --border:  #E2E8F0;                  /* slate-200 — dividers, card borders */
  --shadow:  rgba(14, 165, 233, 0.10); /* Electric Sky tint — box shadows */

  /* Spacing */
  --section-gap: clamp(4rem, 10vw, 9rem);
}
/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
/* ── Typography ─────────────────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}
/* ── Layout Utilities ───────────────────────────────────────────────────── */

/* Section wrapper */
.section {
  padding: var(--section-gap) 2.5rem;
}

.section.alt-bg {
  background: var(--surface);
}

/* Section header: title left, optional link right */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

/* ── Hero layout ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: clamp(3rem, 8vw, 6rem) 2.5rem;
  align-items: center;
  min-height: 80vh;
}

/* ── Stats ── */
.stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--surface);
}

/* ── Work grid ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── About grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

/* ── Contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ── Tablet breakpoint (≤1023px) ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding: 3rem 2rem;
  }
}

/* ── Mobile breakpoint (≤767px) ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .section {
    padding: 3.5rem 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 2.5rem 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .stats {
    padding: 1.5rem;
    gap: 1.5rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
/* ── Components ─────────────────────────────────────────────────────────── */

/* ── Buttons ── */
.btn-primary {
  background: var(--amber);
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--border);
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 1.05rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--amber);
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--surface);
}

.footer-dot {
  color: var(--amber);
}

@media (max-width: 767px) {
  footer {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Hero ── */
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.97rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-left h1 {
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2.2rem;
}

@media (max-width: 767px) {
  .hero-body {
    max-width: 100%;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  background: linear-gradient(145deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 12px 40px var(--shadow);
}


.hero-visual a {
  display: block;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: rgba(14, 165, 233, 0.35);
  letter-spacing: 0.05em;
}

/* ── Stat items ── */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat-desc {
  font-size: 1rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

/* ── Work cards ── */
.work-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--paper);
  text-decoration: none;
  display: block;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: rgba(14, 165, 233, 0.2);
}

.work-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: rgba(14, 165, 233, 0.4);
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-info {
  padding: 1.1rem 1.2rem;
}

.work-tag {
  font-family: 'DM Mono', monospace;
  font-size: 1.05rem; /* same as nav-links */
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.work-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.work-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── About photo ── */
.about-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 32px var(--shadow);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .about-photo {
    aspect-ratio: 1 / 1;
  }
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-text h3 {
  margin-bottom: 1rem;
}

/* ── Skills ── */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 165, 233, 0.06);
}

/* ── Testimonial ── */
.testimonial-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-gap) 1rem;
}

@media (max-width: 767px) {
  .testimonial-section {
    padding: 3.5rem 1.5rem;
  }
}

.testimonial-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--paper);
}

.testimonial-author {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Contact ── */
.contact-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.contact-tagline em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-links a {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 1rem;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.contact-form .btn-primary {
  align-self: flex-start;
}

/* ── Portfolio list page ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ── Portfolio single page ── */
.project-back {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.project-back:hover {
  color: var(--accent);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 3rem;
  display: block;
}

.project-header {
  margin-bottom: 3rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-content {
  margin-bottom: 4rem;
}

.project-content p {
  margin-bottom: 1.4rem;
}

.project-content ul,
.project-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.project-content li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.15rem;
}

.project-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.project-content a:hover {
  opacity: 0.75;
}

.project-content h2 {
  font-size: 1.65rem;
  margin: 2rem 0 1rem;
}

.project-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.project-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  gap: 1rem;
}

.project-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.project-nav a:hover {
  color: var(--accent);
}

.project-nav .next {
  text-align: right;
  margin-left: auto;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--ink);
}

/* ── Section intro ── */
.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ── Quotes gallery ── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1023px) {
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .quotes-grid {
    grid-template-columns: 1fr;
  }
}

.quote-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--paper);
  text-decoration: none;
  display: block;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: rgba(14, 165, 233, 0.2);
}

.quote-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
}

.quote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-thumb-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: rgba(14, 165, 233, 0.4);
}

.quote-card-info {
  padding: 0.8rem 1rem;
}

.quote-card-excerpt {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.3rem;
}

/* ── Quote single page cover ── */
.quote-cover {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 0 auto 3rem;
  border-radius: 3px;
}

/* ── Article list (ithelp) ── */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-item {
  display: block;
  text-decoration: none;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.article-item:first-child {
  border-top: 1px solid var(--border);
}

.article-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.article-item:hover .article-title {
  color: var(--accent);
}

.article-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Article single header description ── */
.article-header-desc {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-top: 0.8rem;
}

/* ── Courses Section ── */
.courses-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.course-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1023px) {
  .course-main-grid {
    grid-template-columns: 1fr;
  }
}

.course-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.course-photo-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}

.course-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .course-photos {
    grid-template-columns: 1fr;
  }
}

.course-main-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.course-main-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.course-main-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--ink);
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.course-tag-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: var(--surface);
}

.course-main-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 60ch;
}

.enterprise-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.enterprise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1023px) {
  .enterprise-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .enterprise-cards {
    grid-template-columns: 1fr;
  }
  .course-main-card {
    padding: 1.5rem;
  }
}

.enterprise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
}

.enterprise-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.enterprise-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.enterprise-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.enterprise-cta-link {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.enterprise-cta-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Testimonials Grid (multi) ── */
.testimonial-inner--multi {
  max-width: 1400px;
  text-align: left;
}

.testimonial-tag {
  color: var(--amber) !important;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card .quote-mark {
  font-size: 3rem;
  line-height: 0.8;
  margin-bottom: 0.75rem;
}

.testimonial-card .testimonial-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  flex: 1;
}

.testimonial-card .testimonial-author {
  margin-top: 1rem;
}

/* ── Knowledge Section ── */
.knowledge-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.knowledge-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .knowledge-entries {
    grid-template-columns: 1fr;
  }
}

.knowledge-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.knowledge-entry-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.knowledge-entry-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.knowledge-entry-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.knowledge-entry-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.knowledge-recent-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

/* ── Footer CTA Section ── */
.footer-cta-section {
  background: var(--ink);
  color: var(--paper);
}

.footer-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-cta-section .section-tag {
  color: var(--amber);
}

.footer-cta-section h2 {
  color: var(--paper);
  margin: 0;
}

.footer-cta-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

.email-subscribe-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.email-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.2rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 1.05rem;
  color: var(--paper);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.email-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.footer-cta-enterprise {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer-cta-enterprise a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-cta-enterprise a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ── About CALMS box ── */
.about-calms {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 3px 3px 0;
  margin: 1.2rem 0 1.5rem;
}

.about-calms-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.about-calms p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
