/* Technomerger — restored editorial theme.
   Palette carried over from the original 2022 build (accent #f2295b, secondary #39599e)
   and rebuilt as a bright magazine layout on top of Bulma. */

:root {
  --pink: #f2295b;
  --pink-dark: #cc1745;
  --pink-soft: #fff0f4;
  --indigo: #39599e;
  --indigo-dark: #253d73;
  --indigo-soft: #eef2fb;
  --ink: #1f2430;
  --ink-soft: #5a6376;
  --line: #e4e8f2;
  --paper: #ffffff;
  --paper-alt: #f6f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgba(31, 36, 48, .05), 0 14px 34px rgba(57, 89, 158, .09);
  --shadow-hover: 0 4px 10px rgba(31, 36, 48, .07), 0 22px 48px rgba(57, 89, 158, .16);
  --shell: 1140px;
}

/* Safeguard: content is never hidden waiting on JS. Any reveal animation is
   progressive enhancement only. */
[data-aos] { opacity: 1 !important; transform: none !important; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .tm-brand, .tm-btn, .tm-chip, .tm-kicker {
  font-family: 'Poppins', 'Open Sans', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.22; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--pink); text-decoration: underline; }

.tm-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- header ----------
   Built with flex-wrap + min-width:0 on purpose: a nav that cannot shrink pushes
   its own links past the viewport and silently clips them. */
.tm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.tm-headbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  min-height: 74px;
  min-width: 0;
}

.tm-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--ink);
  min-width: 0;
}
.tm-brand:hover { color: var(--ink); text-decoration: none; }
.tm-brand em { font-style: normal; color: var(--pink); }

.tm-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--pink) 0%, #ff6a8b 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(242, 41, 91, .32);
}

.tm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-left: auto;
  min-width: 0;
}

.tm-navlink {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
}
.tm-navlink:hover { background: var(--pink-soft); color: var(--pink); text-decoration: none; }
.tm-navlink.is-current { background: var(--indigo-soft); color: var(--indigo-dark); font-weight: 600; }

.tm-burger { display: none; }

/* ---------- hero ---------- */
.tm-hero {
  background:
    radial-gradient(1100px 460px at 88% -12%, rgba(242, 41, 91, .12), transparent 62%),
    radial-gradient(880px 420px at 4% 8%, rgba(57, 89, 158, .11), transparent 60%),
    var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 70px;
}

.tm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 46px;
  align-items: center;
}

.tm-hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  letter-spacing: -.025em;
  margin: 6px 0 18px;
}

.tm-heroimg { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tm-heroimg img { width: 100%; }

.tm-kicker {
  display: inline-block;
  margin: 0;
  color: var(--pink);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tm-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 62ch; margin: 0; }

.tm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.tm-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  font-size: .97rem;
  border: 2px solid var(--pink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px rgba(242, 41, 91, .26);
}
.tm-btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 41, 91, .34); }

.tm-btn-ghost { background: transparent; color: var(--indigo-dark); border-color: var(--line); box-shadow: none; }
.tm-btn-ghost:hover { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo-dark); box-shadow: none; }

/* ---------- interior page header ---------- */
.tm-pagehead {
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 42px;
}
.tm-pagehead h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -.02em;
  margin: 8px 0 16px;
  max-width: 22ch;
}
.tm-pagehead .tm-lede { font-size: 1.05rem; }

.tm-crumbs { font-size: .84rem; color: var(--ink-soft); margin: 0 0 14px; }
.tm-crumbs span[aria-hidden] { padding: 0 7px; color: #b9c0d2; }

.tm-heroframe { margin-top: -22px; margin-bottom: 4px; position: relative; z-index: 2; }

/* ---------- article body ---------- */
.tm-article {
  padding: 46px 22px 22px;
  max-width: 800px;
  font-size: 1.045rem;
}
.tm-article > h2 {
  font-size: 1.62rem;
  margin: 46px 0 14px;
  padding-top: 4px;
  letter-spacing: -.015em;
}
.tm-article > h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--pink);
  margin-bottom: 16px;
}
.tm-article h3 { font-size: 1.2rem; margin: 30px 0 10px; color: var(--indigo-dark); }
.tm-article p { margin: 0 0 20px; }
.tm-article ul, .tm-article ol { margin: 0 0 22px; padding-left: 1.35em; }
.tm-article li { margin-bottom: 9px; }
.tm-article ul { list-style: disc; }
.tm-article ol { list-style: decimal; }
.tm-article strong { color: var(--ink); font-weight: 600; }
.tm-article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(57, 89, 158, .35); }
.tm-article a:hover { text-decoration-color: var(--pink); }
.tm-article blockquote {
  margin: 0 0 22px;
  padding: 18px 22px;
  background: var(--pink-soft);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tm-article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: .95rem; }
.tm-article th, .tm-article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.tm-article th { background: var(--indigo-soft); }

.tm-figure {
  margin: 34px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tm-figure img { width: 100%; }

/* ---------- cards ---------- */
.tm-more { padding: 26px 22px 76px; }
.tm-more h2 { font-size: 1.35rem; margin: 0 0 22px; }
.tm-more h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--indigo);
  margin-top: 12px;
}

.tm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.tm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(242, 41, 91, .34); text-decoration: none; }

.tm-chip {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-family: 'Poppins', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tm-cardtitle { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.35; }
.tm-cardmeta { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }

/* ---------- footer ---------- */
.tm-footer {
  background: linear-gradient(165deg, var(--indigo-dark) 0%, var(--indigo) 100%);
  color: rgba(255, 255, 255, .8);
  padding: 62px 0 34px;
  margin-top: 20px;
}
.tm-footer .tm-brand, .tm-footer .tm-ftitle { color: #fff; }
.tm-footer .tm-brand em { color: #ff8ea8; }
.tm-footer a { color: rgba(255, 255, 255, .8); }
.tm-footer a:hover { color: #fff; }

.tm-fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.tm-fabout p { margin-top: 16px; font-size: .93rem; line-height: 1.7; max-width: 38ch; }
.tm-ftitle { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.tm-fcol ul { list-style: none; margin: 0; padding: 0; }
.tm-fcol li { margin-bottom: 9px; font-size: .92rem; line-height: 1.5; }

.tm-fbase {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .84rem;
}
.tm-fbase p { margin: 0 0 8px; }
.tm-disclaimer { color: rgba(255, 255, 255, .62); line-height: 1.65; max-width: 92ch; }

/* ---------- entrance animation: CSS-only, ends visible ---------- */
@keyframes tmRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tm-hero-copy, .tm-hero-art, .tm-pagehead .tm-shell { animation: tmRise .5s ease both; }
  .tm-hero-art { animation-delay: .08s; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tm-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .tm-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 44px;
    height: 40px;
    padding: 0 9px;
    background: var(--pink-soft);
    border: 1px solid rgba(242, 41, 91, .25);
    border-radius: 11px;
    cursor: pointer;
  }
  .tm-burger span { display: block; height: 2px; border-radius: 2px; background: var(--pink-dark); }
  .tm-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding-bottom: 12px;
  }
  /* Collapsed only when JS is present to reopen it. */
  .js-on .tm-nav { display: none; }
  .js-on .tm-nav.is-open { display: flex; }
  .tm-navlink { padding: 11px 14px; }
  .tm-hero { padding: 44px 0 50px; }
  .tm-article { padding: 34px 22px 16px; }
  .tm-fgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
