/* ==========================================================
   Tim Kelle Digital - Site Experience 1.0
   Scoped homepage, tools index and 404 presentation
   ========================================================== */

.tkse-home,
.tkse-tools-index,
.tkse-404 {
  --tkse-navy: #081222;
  --tkse-navy-2: #0d192a;
  --tkse-panel: #132238;
  --tkse-blue: #173b6c;
  --tkse-blue-soft: #5f91d8;
  --tkse-gold: #c69b2d;
  --tkse-gold-light: #e0bc5a;
  --tkse-ink: #091526;
  --tkse-muted: #5d6a7a;
  --tkse-paper: #f3f5f7;
  --tkse-white: #ffffff;
  --tkse-line: rgba(9, 21, 38, 0.12);
  --tkse-line-dark: rgba(255, 255, 255, 0.11);
  --tkse-text-dark: #f5f7fb;
  --tkse-muted-dark: #aab6c7;
  --tkse-shadow: 0 24px 70px rgba(3, 10, 21, 0.14);
  --tkse-shadow-soft: 0 14px 38px rgba(8, 18, 34, 0.08);
  --tkse-radius: 24px;
  --tkse-radius-sm: 16px;
  --tkse-shell: 1320px;
  --tkse-transition: 180ms ease;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--tkse-ink);
  font-family: inherit;
}

.tkse-home *,
.tkse-home *::before,
.tkse-home *::after,
.tkse-tools-index *,
.tkse-tools-index *::before,
.tkse-tools-index *::after,
.tkse-404 *,
.tkse-404 *::before,
.tkse-404 *::after {
  box-sizing: border-box;
}

body.tkse-home-page,
body.tkse-tools-page,
body.tkse-error-page {
  overflow-x: clip;
  background: var(--tkse-paper, #f3f5f7);
}

body.tkse-home-page .site.grid-container,
body.tkse-home-page .site-content,
body.tkse-home-page #primary,
body.tkse-home-page .site-main,
body.tkse-tools-page .site.grid-container,
body.tkse-tools-page .site-content,
body.tkse-tools-page #primary,
body.tkse-tools-page .site-main,
body.tkse-error-page .site.grid-container,
body.tkse-error-page .site-content,
body.tkse-error-page #primary,
body.tkse-error-page .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.tkse-home-page .inside-article,
body.tkse-tools-page .inside-article {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.tkse-home-page .entry-content,
body.tkse-tools-page .entry-content {
  margin: 0;
}

body.tkse-home-page .entry-header,
body.tkse-tools-page .entry-header {
  display: none;
}

.tkse-shell {
  width: min(100% - 48px, var(--tkse-shell));
  margin-inline: auto;
}

.tkse-eyebrow,
.tkse-kicker {
  margin: 0;
  color: var(--tkse-gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tkse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.91rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--tkse-transition), border-color var(--tkse-transition), background-color var(--tkse-transition), color var(--tkse-transition), box-shadow var(--tkse-transition);
}

.tkse-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.tkse-button--gold {
  border-color: var(--tkse-gold-light);
  background: var(--tkse-gold-light);
  color: var(--tkse-navy);
  box-shadow: 0 14px 34px rgba(198, 155, 45, 0.2);
}

.tkse-button--gold:hover {
  border-color: #ebcb72;
  background: #ebcb72;
  color: var(--tkse-navy);
}

.tkse-button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tkse-text-dark);
}

.tkse-button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.tkse-button--navy {
  border-color: var(--tkse-navy);
  background: var(--tkse-navy);
  color: #fff;
}

.tkse-button--navy:hover {
  border-color: var(--tkse-blue);
  background: var(--tkse-blue);
  color: #fff;
}

.tkse-button--outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
}

.tkse-button--outline:hover {
  border-color: var(--tkse-blue-soft);
  background: rgba(95, 145, 216, 0.12);
  color: #fff;
}

.tkse-home a:focus-visible,
.tkse-tools-index a:focus-visible,
.tkse-404 a:focus-visible,
.tkse-404 input:focus-visible,
.tkse-404 button:focus-visible {
  outline: 3px solid var(--tkse-blue-soft);
  outline-offset: 4px;
}

/* Hero ---------------------------------------------------- */

.tkse-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(95, 145, 216, 0.2), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(198, 155, 45, 0.12), transparent 28rem),
    linear-gradient(145deg, #07111f 0%, var(--tkse-navy) 56%, #0d1c31 100%);
  color: var(--tkse-text-dark);
}

.tkse-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  content: "";
  pointer-events: none;
}

.tkse-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.86fr);
  align-items: center;
  gap: clamp(52px, 7vw, 104px);
  padding-top: clamp(78px, 9vw, 126px);
  padding-bottom: 72px;
}

.tkse-hero__copy h1 {
  max-width: 790px;
  margin: 18px 0 0;
  color: var(--tkse-text-dark);
  font-size: clamp(3.2rem, 5.8vw, 6.25rem);
  font-weight: 790;
  letter-spacing: -0.068em;
  line-height: 0.96;
  text-wrap: balance;
}

.tkse-hero__lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--tkse-muted-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.tkse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.tkse-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tkse-trust li {
  position: relative;
  padding-left: 18px;
  color: #c7d0dc;
  font-size: 0.82rem;
  font-weight: 650;
}

.tkse-trust li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tkse-gold-light);
  box-shadow: 0 0 0 4px rgba(198, 155, 45, 0.1);
  content: "";
}

.tkse-command {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(13, 25, 42, 0.86);
  box-shadow: 0 34px 90px rgba(2, 7, 16, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.tkse-command::after {
  position: absolute;
  z-index: -1;
  right: -38px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(95, 145, 216, 0.16);
  filter: blur(42px);
  content: "";
}

.tkse-command__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 0 8px 12px;
  color: #8797ab;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tkse-command__bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tkse-command__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48c993;
  box-shadow: 0 0 0 4px rgba(72, 201, 147, 0.11);
}

.tkse-command__bar strong {
  color: #cbd4df;
}

.tkse-command__focus {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid rgba(95, 145, 216, 0.24);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(95, 145, 216, 0.17), rgba(255, 255, 255, 0.045));
  color: #fff;
  text-decoration: none;
  transition: border-color var(--tkse-transition), transform var(--tkse-transition), background-color var(--tkse-transition);
}

.tkse-command__focus:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 145, 216, 0.42);
  color: #fff;
  text-decoration: none;
}

.tkse-command__icon,
.tkse-command__quick a > span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 18, 34, 0.48);
  color: var(--tkse-blue-soft);
}

.tkse-command__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.tkse-command__icon svg {
  width: 27px;
  height: 27px;
}

.tkse-command__focus small,
.tkse-command__focus strong,
.tkse-command__focus em {
  display: block;
}

.tkse-command__focus small {
  margin-bottom: 4px;
  color: var(--tkse-gold-light);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tkse-command__focus strong {
  font-size: 1.13rem;
  letter-spacing: -0.02em;
}

.tkse-command__focus em {
  margin-top: 5px;
  color: #aab8c9;
  font-size: 0.77rem;
  font-style: normal;
}

.tkse-command__focus b {
  color: var(--tkse-gold-light);
  font-size: 1.2rem;
}

.tkse-command__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.tkse-command__quick a {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--tkse-line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  flex-direction: column;
  text-decoration: none;
  transition: border-color var(--tkse-transition), background-color var(--tkse-transition), transform var(--tkse-transition);
}

.tkse-command__quick a:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 145, 216, 0.3);
  background: rgba(95, 145, 216, 0.08);
  color: #fff;
  text-decoration: none;
}

.tkse-command__quick a > span {
  width: 34px;
  height: 34px;
  margin-bottom: auto;
  border-radius: 10px;
}

.tkse-command__quick svg {
  width: 18px;
  height: 18px;
}

.tkse-command__quick strong,
.tkse-command__quick small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkse-command__quick strong {
  margin-top: 16px;
  font-size: 0.79rem;
}

.tkse-command__quick small {
  margin-top: 3px;
  color: #8292a6;
  font-size: 0.66rem;
}

.tkse-signalbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--tkse-line-dark);
}

.tkse-signalbar div {
  display: flex;
  min-height: 92px;
  padding: 22px 28px;
  border-right: 1px solid var(--tkse-line-dark);
  justify-content: center;
  flex-direction: column;
}

.tkse-signalbar div:last-child {
  border-right: 0;
}

.tkse-signalbar strong {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.tkse-signalbar span {
  margin-top: 3px;
  color: #8494a8;
  font-size: 0.75rem;
}

/* Shared section heads ------------------------------------ */

.tkse-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(36px, 8vw, 120px);
}

.tkse-section-head h2 {
  max-width: 850px;
  margin: 14px 0 0;
  color: var(--tkse-ink);
  font-size: clamp(2.35rem, 4.5vw, 4.65rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 1.01;
  text-wrap: balance;
}

.tkse-section-head > p {
  margin: 0;
  color: var(--tkse-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.tkse-section-head--dark h2 {
  color: var(--tkse-text-dark);
}

.tkse-section-head--dark > p {
  color: var(--tkse-muted-dark);
}

/* Tool catalogue ----------------------------------------- */

.tkse-tools {
  padding: clamp(86px, 10vw, 144px) 0;
  background:
    radial-gradient(circle at 100% 10%, rgba(95, 145, 216, 0.09), transparent 30rem),
    var(--tkse-paper);
}

.tkse-tools .tkse-eyebrow,
.tkse-tools-index .tkse-eyebrow,
.tkse-expertise .tkse-eyebrow,
.tkse-404 .tkse-eyebrow {
  color: #8a6712;
}

.tkse-tool-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.tkse-tool-card {
  position: relative;
  display: flex;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--tkse-line);
  border-radius: var(--tkse-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  grid-column: span 4;
  flex-direction: column;
  transition: transform var(--tkse-transition), border-color var(--tkse-transition), box-shadow var(--tkse-transition);
}

.tkse-tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 59, 108, 0.24);
  box-shadow: var(--tkse-shadow-soft);
}

.tkse-tool-card--featured {
  min-height: 450px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 145, 216, 0.23), transparent 25rem),
    linear-gradient(145deg, var(--tkse-navy), #102540);
  box-shadow: var(--tkse-shadow);
  color: #fff;
  grid-column: span 8;
}

.tkse-tool-card--featured::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.tkse-tool-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tkse-tool-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(23, 59, 108, 0.13);
  border-radius: 15px;
  background: rgba(95, 145, 216, 0.09);
  color: var(--tkse-blue);
}

.tkse-tool-card--featured .tkse-tool-card__icon {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: var(--tkse-blue-soft);
}

.tkse-tool-card__icon svg {
  width: 25px;
  height: 25px;
}

.tkse-tool-card__index {
  color: #aab3be;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tkse-tool-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(177, 133, 24, 0.22);
  border-radius: 999px;
  background: rgba(177, 133, 24, 0.08);
  color: #76570d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tkse-tool-card--featured .tkse-tool-card__index {
  color: #8191a6;
}

.tkse-tool-card__body {
  margin-top: 50px;
}

.tkse-tool-card--featured .tkse-tool-card__body {
  max-width: 660px;
}

.tkse-tool-card .tkse-kicker {
  color: #6e7b8b;
}

.tkse-tool-card--featured .tkse-kicker {
  color: var(--tkse-gold-light);
}

.tkse-tool-card h3 {
  margin: 11px 0 0;
  color: var(--tkse-ink);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 770;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.tkse-tool-card--featured h3 {
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 3.45rem);
}

.tkse-tool-card__body > p:not(.tkse-kicker) {
  margin: 17px 0 0;
  color: var(--tkse-muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.tkse-tool-card--featured .tkse-tool-card__body > p:not(.tkse-kicker) {
  max-width: 610px;
  color: var(--tkse-muted-dark);
  font-size: 1rem;
}

.tkse-tool-card__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
}

.tkse-tool-card__foot p {
  margin: 0;
}

.tkse-tool-card__foot p span,
.tkse-tool-card__foot p strong {
  display: block;
}

.tkse-tool-card__foot p span {
  color: #8b97a5;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tkse-tool-card__foot p strong {
  max-width: 250px;
  margin-top: 4px;
  color: #526071;
  font-size: 0.75rem;
  font-weight: 680;
  line-height: 1.4;
}

.tkse-tool-card--featured .tkse-tool-card__foot p span {
  color: #8292a6;
}

.tkse-tool-card--featured .tkse-tool-card__foot p strong {
  max-width: 450px;
  color: #bdc7d3;
}

.tkse-tool-card__foot > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tkse-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.tkse-tool-card--featured .tkse-tool-card__foot > a {
  color: var(--tkse-gold-light);
}

.tkse-tool-card__foot > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tkse-section-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--tkse-line);
}

.tkse-section-action p {
  margin: 0;
  color: var(--tkse-muted);
  font-size: 0.86rem;
}

.tkse-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tkse-blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.tkse-arrow-link::after {
  content: "↗";
}

.tkse-arrow-link:hover {
  color: #0e2e58;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Journal ------------------------------------------------- */

.tkse-journal {
  padding: clamp(86px, 10vw, 144px) 0;
  background:
    radial-gradient(circle at 0% 15%, rgba(95, 145, 216, 0.15), transparent 30rem),
    linear-gradient(155deg, #07111f, var(--tkse-navy) 72%);
  color: var(--tkse-text-dark);
}

.tkse-journal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.tkse-post-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tkse-line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  grid-column: 8 / -1;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 0.62fr);
  transition: transform var(--tkse-transition), border-color var(--tkse-transition), background-color var(--tkse-transition);
}

.tkse-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 145, 216, 0.31);
  background: rgba(255, 255, 255, 0.065);
}

.tkse-post-card--lead {
  grid-row: 1 / span 3;
  grid-column: 1 / span 7;
  grid-template-columns: 1fr;
}

.tkse-post-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #102139;
}

.tkse-post-card--lead .tkse-post-card__media {
  min-height: 340px;
  aspect-ratio: 16 / 9;
}

.tkse-post-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.tkse-post-card:hover .tkse-post-card__media img {
  transform: scale(1.025);
}

.tkse-post-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 11, 21, 0.2), transparent 50%);
  content: "";
}

.tkse-post-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(198, 155, 45, 0.2), transparent 12rem),
    linear-gradient(145deg, #142943, #0a1729);
}

.tkse-post-card__fallback i {
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.tkse-post-card__fallback b {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: #cbd4df;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tkse-post-card__content {
  display: flex;
  min-width: 0;
  padding: 22px;
  flex-direction: column;
}

.tkse-post-card--lead .tkse-post-card__content {
  padding: 30px;
}

.tkse-post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7f90a4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tkse-post-card__meta a {
  color: var(--tkse-gold-light);
  text-decoration: none;
}

.tkse-post-card h3 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.24;
}

.tkse-post-card--lead h3 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.tkse-post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tkse-post-card h3 a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(224, 188, 90, 0.6);
  text-underline-offset: 5px;
}

.tkse-post-card__content > p {
  display: none;
  margin: 16px 0 0;
  color: var(--tkse-muted-dark);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tkse-post-card--lead .tkse-post-card__content > p {
  display: block;
}

.tkse-post-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #dbe2ea;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.tkse-post-card__link:hover {
  color: var(--tkse-gold-light);
  text-decoration: none;
}

.tkse-journal__action {
  margin-top: 36px;
  text-align: right;
}

/* Expertise ----------------------------------------------- */

.tkse-expertise {
  padding: clamp(76px, 9vw, 118px) 0;
  background: #fff;
}

.tkse-expertise__grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.tkse-expertise__label {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: column;
}

.tkse-expertise__portrait {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 108, 0.16);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--tkse-navy), #153259);
  box-shadow: var(--tkse-shadow-soft);
}

.tkse-expertise__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tkse-expertise__portrait i {
  color: var(--tkse-gold-light);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.tkse-expertise__label p {
  margin: 0;
  color: #7d8998;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.tkse-expertise__copy h2 {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--tkse-ink);
  font-size: clamp(2.1rem, 3.6vw, 3.65rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.tkse-expertise__copy > p:last-child {
  max-width: 760px;
  margin: 19px 0 0;
  color: var(--tkse-muted);
  line-height: 1.75;
}

/* Tools index --------------------------------------------- */

.tkse-tools-index__hero {
  padding: clamp(82px, 9vw, 126px) 0 74px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(198, 155, 45, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 20%, rgba(95, 145, 216, 0.18), transparent 30rem),
    linear-gradient(145deg, #07111f, #0d1d33);
  color: var(--tkse-text-dark);
}

.tkse-tools-index__hero .tkse-eyebrow {
  color: var(--tkse-gold-light);
}

.tkse-tools-index__hero h1 {
  max-width: 1050px;
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 790;
  letter-spacing: -0.068em;
  line-height: 0.98;
  text-wrap: balance;
}

.tkse-tools-index__intro {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--tkse-line-dark);
}

.tkse-tools-index__intro p {
  margin: 0;
  color: var(--tkse-muted-dark);
  font-size: 1.02rem;
  line-height: 1.72;
}

.tkse-tools-index__intro strong {
  color: var(--tkse-gold-light);
  font-size: 0.79rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tkse-tools-index__catalog {
  padding: 82px 0 120px;
  background: var(--tkse-paper);
}

.tkse-tools-index__catalog .tkse-tool-grid {
  margin-top: 0;
}

.tkse-tools-index__note {
  padding: 78px 0 90px;
  background: #fff;
}

.tkse-tools-index__note h2 {
  max-width: 850px;
  margin: 13px 0 0;
  color: var(--tkse-ink);
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
  font-weight: 780;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.tkse-tools-index__note p:last-child {
  max-width: 710px;
  margin: 21px 0 0;
  color: var(--tkse-muted);
  line-height: 1.75;
}

/* Helpful 404 --------------------------------------------- */

.tkse-404 {
  padding: clamp(58px, 8vw, 104px) 24px clamp(80px, 10vw, 130px);
  background: var(--tkse-paper);
}

.tkse-404__hero,
.tkse-404__section {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.tkse-404__hero {
  padding: clamp(38px, 6vw, 72px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(198, 155, 45, 0.16), transparent 23rem),
    radial-gradient(circle at 5% 50%, rgba(95, 145, 216, 0.19), transparent 28rem),
    var(--tkse-navy);
  box-shadow: var(--tkse-shadow);
  color: #fff;
}

.tkse-404__hero .tkse-eyebrow {
  color: var(--tkse-gold-light);
}

.tkse-404__hero h1 {
  max-width: 840px;
  margin: 15px 0 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.tkse-404__hero > p:not(.tkse-eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--tkse-muted-dark);
  font-size: 1rem;
  line-height: 1.75;
}

.tkse-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 720px;
  margin-top: 30px;
}

.tkse-search input,
.tkse-search button {
  min-height: 50px;
  border-radius: 12px;
  font: inherit;
}

.tkse-search input {
  min-width: 0;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.tkse-search input::placeholder {
  color: #8494a8;
}

.tkse-search button {
  padding: 10px 22px;
  border: 1px solid var(--tkse-gold-light);
  background: var(--tkse-gold-light);
  color: var(--tkse-navy);
  font-weight: 800;
  cursor: pointer;
}

.tkse-404__section {
  margin-top: 74px;
}

.tkse-404__heading h2 {
  margin: 10px 0 0;
  color: var(--tkse-ink);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.tkse-404__tools,
.tkse-404__posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tkse-404__tools > a {
  display: flex;
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--tkse-line);
  border-radius: 20px;
  background: #fff;
  color: var(--tkse-ink);
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--tkse-transition), border-color var(--tkse-transition), box-shadow var(--tkse-transition);
}

.tkse-404__tools > a:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 59, 108, 0.24);
  box-shadow: var(--tkse-shadow-soft);
  color: var(--tkse-ink);
  text-decoration: none;
}

.tkse-404__tools > a > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: auto;
  border-radius: 13px;
  background: rgba(95, 145, 216, 0.1);
  color: var(--tkse-blue);
}

.tkse-404__tools svg {
  width: 22px;
  height: 22px;
}

.tkse-404__tools strong {
  margin-top: 24px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.tkse-404__tools small {
  margin-top: 4px;
  color: var(--tkse-muted);
}

.tkse-404__posts .tkse-post-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-column: auto;
  background: var(--tkse-navy);
}

.tkse-404__posts .tkse-post-card__media {
  min-height: 190px;
  aspect-ratio: 16 / 9;
}

.tkse-404__posts .tkse-post-card__content {
  min-height: 220px;
}

/* Responsive ---------------------------------------------- */

@media (max-width: 1120px) {
  .tkse-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
    gap: 44px;
  }

  .tkse-hero__copy h1 {
    font-size: clamp(3rem, 6.8vw, 5.3rem);
  }

  .tkse-tool-card {
    grid-column: span 6;
  }

  .tkse-tool-card--featured {
    grid-column: span 12;
  }

  .tkse-expertise__grid {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .tkse-expertise__grid > .tkse-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .tkse-shell {
    width: min(100% - 36px, var(--tkse-shell));
  }

  .tkse-hero__grid {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .tkse-hero__copy {
    max-width: 780px;
  }

  .tkse-command {
    width: 100%;
    max-width: 720px;
  }

  .tkse-signalbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tkse-signalbar div:nth-child(2) {
    border-right: 0;
  }

  .tkse-signalbar div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--tkse-line-dark);
  }

  .tkse-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tkse-section-head > p {
    max-width: 720px;
  }

  .tkse-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tkse-post-card,
  .tkse-post-card--lead {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .tkse-post-card__media,
  .tkse-post-card--lead .tkse-post-card__media {
    min-height: 230px;
    aspect-ratio: 16 / 10;
  }

  .tkse-post-card__content > p {
    display: block;
  }

  .tkse-post-card h3,
  .tkse-post-card--lead h3 {
    font-size: 1.45rem;
  }

  .tkse-tools-index__intro {
    grid-template-columns: 1fr;
  }

  .tkse-404__posts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .tkse-shell {
    width: min(100% - 28px, var(--tkse-shell));
  }

  .tkse-hero__grid {
    gap: 40px;
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .tkse-hero__copy h1 {
    font-size: clamp(2.62rem, 12.3vw, 4.2rem);
    line-height: 0.98;
  }

  .tkse-hero__lead {
    margin-top: 22px;
    font-size: 1rem;
  }

  .tkse-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tkse-button {
    width: 100%;
  }

  .tkse-trust {
    display: grid;
    gap: 11px;
  }

  .tkse-command {
    padding: 11px;
    border-radius: 22px;
  }

  .tkse-command__bar {
    padding-inline: 4px;
  }

  .tkse-command__focus {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .tkse-command__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .tkse-command__focus em {
    white-space: normal;
  }

  .tkse-command__quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tkse-command__quick a {
    display: flex;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
    border-radius: 14px;
    flex-direction: column;
  }

  .tkse-command__quick a > span {
    width: 34px;
    height: 34px;
    margin: 0 0 auto;
  }

  .tkse-command__quick strong {
    margin-top: 0;
    font-size: clamp(0.66rem, 3.1vw, 0.78rem);
    line-height: 1.17;
  }

  .tkse-command__quick small {
    display: none;
  }

  .tkse-signalbar div {
    min-height: 76px;
    padding: 17px;
  }

  .tkse-section-head h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .tkse-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 38px;
  }

  .tkse-tool-card,
  .tkse-tool-card--featured {
    position: relative;
    min-height: 0;
    aspect-ratio: 1;
    padding: 16px;
    grid-column: auto;
  }

  .tkse-tool-card__body {
    margin-top: 14px;
  }

  .tkse-tool-card .tkse-kicker,
  .tkse-tool-card__body > p:not(.tkse-kicker),
  .tkse-tool-card__foot p,
  .tkse-tool-card__index {
    display: none;
  }

  .tkse-tool-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .tkse-tool-card__icon svg {
    width: 21px;
    height: 21px;
  }

  .tkse-tool-card__badge {
    width: 10px;
    min-height: 10px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    background: var(--tkse-gold);
    color: transparent;
    font-size: 0;
  }

  .tkse-tool-card h3,
  .tkse-tool-card--featured h3 {
    margin-top: 0;
    font-size: clamp(0.9rem, 4.2vw, 1.08rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .tkse-tool-card__foot {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
  }

  .tkse-tool-card__foot > a {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    min-height: 0;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 13px;
    color: var(--tkse-blue);
    font-size: 0.67rem;
    font-weight: 800;
  }

  .tkse-tool-card__foot > a span {
    display: inline;
  }

  .tkse-tool-card--featured .tkse-tool-card__foot > a {
    color: var(--tkse-gold-light);
  }

  .tkse-section-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .tkse-journal-grid {
    grid-template-columns: 1fr;
  }

  .tkse-post-card__media,
  .tkse-post-card--lead .tkse-post-card__media {
    min-height: 210px;
  }

  .tkse-post-card__content,
  .tkse-post-card--lead .tkse-post-card__content {
    padding: 22px;
  }

  .tkse-journal__action {
    text-align: left;
  }

  .tkse-expertise__grid,
  .tkse-expertise__grid > .tkse-button {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .tkse-expertise__label {
    align-items: flex-start;
  }

  .tkse-expertise__label p {
    text-align: left;
  }

  .tkse-tools-index__hero {
    padding-top: 60px;
  }

  .tkse-tools-index__hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.3rem);
  }

  .tkse-404 {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tkse-404__hero {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .tkse-search {
    grid-template-columns: 1fr;
  }

  .tkse-404__tools,
  .tkse-404__posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .tkse-shell {
    width: min(100% - 22px, var(--tkse-shell));
  }

  .tkse-hero__copy h1 {
    font-size: 2.48rem;
  }

  .tkse-command__focus {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tkse-command__icon {
    width: 42px;
    height: 42px;
  }

  .tkse-command__focus b {
    display: none;
  }

  .tkse-signalbar div {
    padding-inline: 12px;
  }

  .tkse-signalbar strong {
    font-size: 0.94rem;
  }

  .tkse-signalbar span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tkse-home *,
  .tkse-home *::before,
  .tkse-home *::after,
  .tkse-tools-index *,
  .tkse-tools-index *::before,
  .tkse-tools-index *::after,
  .tkse-404 *,
  .tkse-404 *::before,
  .tkse-404 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
