/* ============================================================
   MEY AI — corporate website
   Palette: white / near-black / muted teal only.
   ============================================================ */

:root {
  --white: #ffffff;
  --ink: #111111;
  --teal: #167d7f;
  --teal-soft: rgba(22, 125, 127, 0.12);
  --surface: #f5f6f5;
  --text-2: #62676b;
  --border: #e6e8e7;
  --ink-60: #3c4043;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-indic: "Rozha One", Georgia, serif;

  --header-h: 68px;
  --radius: 6px;
  --section-pad: 104px;
  --container: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(40px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.012em;
}
h3 { font-size: 18px; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--teal);
}

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--surface); }
#industries { padding-bottom: 44px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-lede {
  font-size: 17.5px;
  color: var(--text-2);
  max-width: 640px;
  margin: 0;
}

.section-note {
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-2);
}

.text-link { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal); }

.btn-secondary { background: var(--white); border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-word {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-word b { color: var(--teal); font-weight: 700; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link.active { color: var(--teal); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { padding: 11px 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin: 36px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.hero-visual { display: flex; justify-content: center; }
.hero-diagram { width: 100%; max-width: 540px; height: auto; }
.d-caption { font: 600 10px var(--font-sans); letter-spacing: 0.12em; fill: #9aa0a1; }
.svg-brahmi { font-family: "Noto Sans Brahmi", "Segoe UI Historic", sans-serif; }
.svg-gloss {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  fill: var(--teal);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hero-visual:hover .svg-gloss,
.glyph-word:hover ~ .svg-gloss { opacity: 1; }
@media (hover: none) { .svg-gloss { opacity: 0.85; } }
.d-label text { font: 600 10px var(--font-sans); letter-spacing: 0.14em; fill: var(--text-2); }

/* ---------- Capability cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: #cfd4d3; }
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--text-2); font-size: 15px; }

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  color: var(--ink);
}
.card-icon svg { width: 24px; height: 24px; }

.cap-list {
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.cap-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid #f0f1f0;
  font-size: 14px;
  color: var(--ink-60);
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--teal);
  border-radius: 1px;
}

.card-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px !important;
  color: var(--text-2);
}

/* ---------- Products ---------- */
.product-feature {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}
.product-feature:hover { border-color: #cfd4d3; }
.product-tag {
  display: inline-block;
  margin: -12px 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.product-main > p { color: var(--text-2); font-size: 15px; max-width: 560px; }

.cap-cols { column-count: 2; column-gap: 32px; }
.cap-cols li { break-inside: avoid; }

.product-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  align-self: start;
}
.product-side h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.pflow { list-style: none; }
.pflow li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.pflow-num {
  flex: none;
  width: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}
.pflow strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pflow span:not(.pflow-num) { font-size: 13.5px; color: var(--text-2); }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.col-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  transition: border-color 0.2s ease;
}
.col-card:hover { border-color: #cfd4d3; }
.col-card p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---------- Industries ---------- */
.ind-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.ind-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.3fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 8px;
  border-bottom: 1px solid var(--border);
}
.ind-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
}
.ind-row h3 { margin: 0; font-size: 17px; }
.ind-row p { margin: 0; font-size: 15px; color: var(--text-2); }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.step-num {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  color: inherit;
}
.why-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.why-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }

.why-cta {
  background: var(--ink);
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}
.why-cta:hover { text-decoration: none; background: #1b1b1b; }
.why-cta h3 { color: #fff; }
.why-cta p { color: #a9aead; }
.why-cta-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #5fc9cb;
}

/* ---------- Tamil heritage showcase ---------- */
.heritage {
  background: var(--ink);
  padding: 112px 0;
}
.heritage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phrase-img {
  margin: 30px 0 6px;
  width: min(540px, 84vw);
  height: auto;
  opacity: 0.9;
}
.phrase-meaning {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9cc4c2;
  margin: 12px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.phrase-img:hover + .phrase-meaning,
.phrase-img:focus + .phrase-meaning,
.phrase-img:focus-visible + .phrase-meaning { opacity: 1; }
@media (hover: none) { .phrase-meaning { opacity: 0.85; } }
.heritage-line {
  font-family: var(--font-indic);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 48px);
  color: #f5f6f5;
  letter-spacing: 0;
  margin: 26px 0 16px;
}
.heritage-sub {
  font-size: 17px;
  color: #c9cdcc;
  margin: 0;
}

/* ---------- Shared motif ---------- */
.motif {
  width: 120px;
  height: 12px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.motif rect { fill: none; }
.motif circle { fill: var(--ink); stroke: none; }
.motif-light { stroke: #7e8383; }
.motif-light rect { stroke: var(--teal); }
.motif-light circle { fill: #7e8383; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}
.about-copy p { color: var(--text-2); font-size: 16.5px; max-width: 560px; }
.about-copy h2 {
  max-width: 480px;
  font-weight: 560;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.about-panel .motif { margin-bottom: 24px; }
.about-panel h3 { font-size: 16px; margin-bottom: 18px; }
.principles { list-style: none; }
.principles li {
  padding: 14px 0;
  border-top: 1px solid #f0f1f0;
}
.principles strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.principles span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-copy p { color: var(--text-2); font-size: 16.5px; max-width: 460px; }

.contact-hints {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px 26px;
}
.contact-hints h3 { font-size: 14px; margin-bottom: 12px; }
.contact-hints ul { list-style: none; }
.contact-hints li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: var(--ink-60);
}
.contact-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--teal);
  border-radius: 1px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
}
.req { color: var(--teal); }
.opt { color: var(--text-2); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font: 400 15px var(--font-sans);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%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='%2362676b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3402e;
}
.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #b3402e;
  min-height: 0;
}
.field-error:empty { margin: 0; }

.btn-submit { width: 100%; padding: 15px 22px; font-size: 15px; }

.form-status {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-60);
}
.form-status strong { display: block; color: var(--ink); margin-bottom: 4px; }
.form-status .status-actions { margin-top: 12px; }
.form-status .btn { font-size: 13px; padding: 9px 14px; }
.form-preview {
  margin-top: 14px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.form-status.error { border-left-color: #b3402e; }
.form-status.success { border-left-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9cdcc;
  padding: 72px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2d2d;
}
.brand-light { color: #fff; }
.footer-desc {
  margin-top: 18px;
  max-width: 320px;
  font-size: 14px;
  color: #a9aead;
}
.footer-nav {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: #e6e8e7;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: #8e9394;
}
.footer-bottom p { margin: 0; }
.footer-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e9394;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-diagram { max-width: 440px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cols-3, .steps { grid-template-columns: 1fr 1fr; }
  .steps { gap: 24px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-feature { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.07);
    padding: 8px 24px 24px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li { border-bottom: 1px solid #f0f1f0; }
  .nav-link { display: block; padding: 15px 0; font-size: 15px; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 16px; padding: 14px 18px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 72px; }
  .hero { padding: 56px 0 64px; }
  .cards-grid, .cols-3, .why-grid, .steps { grid-template-columns: 1fr; }
  .card, .col-card, .why-card { padding: 24px; }
  .contact-form { padding: 26px 20px; }
  .cap-cols { column-count: 1; }
  .ind-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; row-gap: 4px; }
  .ind-row p { grid-column: 2; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .heritage { padding: 84px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Service / product subpages ---------- */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(40px, 5.6vw, 66px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 18px 0 22px;
  max-width: 18ch;
}
.page-lede {
  font-size: 18.5px;
  color: var(--text-2);
  max-width: 660px;
  margin: 0 0 30px;
  line-height: 1.65;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.crumb:hover { color: var(--teal); }
.prose { max-width: 720px; }
.prose p { color: var(--text-2); font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; }
.limits {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.limits h3 { font-size: 15px; margin: 0 0 10px; }
.limits p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.7; }
.related-nav {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-nav h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-weight: 600;
  margin: 0 0 14px;
}
.related-nav ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related-nav a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.related-nav a:hover { border-color: var(--teal); color: var(--teal); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
}
.card-link:hover { text-decoration: underline; }
