/* ==========================================================================
   KavalaTech - Blog design system
   Scoped additions on top of the shared Webflow stylesheet.
   Every selector is namespaced `kt-` so nothing here can collide with, or be
   overridden by, the generated Webflow classes.
   ========================================================================== */

:root {
  /* Ink */
  --kt-ink: #fdfcfc;
  --kt-ink-2: #b3b3b3;
  --kt-ink-3: #8a8a8a;
  /* The quietest ink still has to clear 4.5:1 — it carries the spec line, the
     TOC and every small label, all of them below 14px. */
  --kt-ink-4: #7d7d7d;

  /* Ground */
  --kt-bg: #000;
  --kt-surface: #0f0f0f;
  --kt-surface-2: #161616;

  /* Rules */
  --kt-line: #ffffff1a;
  --kt-line-strong: #ffffff2e;

  /* Accent */
  --kt-accent: #fe6512;
  --kt-accent-dim: #fe651233;
  --kt-accent-wash: #fe65120d;

  /* Type roles */
  --kt-display: Interdisplay, Inter, Arial, sans-serif;
  --kt-utility: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --kt-ease: cubic-bezier(.16, 1, .3, 1);

  /* Sticky offset — the site header is position:sticky, top:0 */
  --kt-sticky-top: 112px;
}

/* --------------------------------------------------------------------------
   Utility face — the second voice of the blog.
   Used for every piece of metadata, so category / date / read time read as one
   consistent "spec line" across the hero, the cards and the article header.
   -------------------------------------------------------------------------- */
.kt-spec {
  font-family: var(--kt-utility);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.kt-spec>* {
  margin: 0;
}

.kt-spec .kt-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.kt-spec .kt-cat {
  color: var(--kt-accent);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */
.kt-section {
  padding: 88px 0;
}

.kt-section--tight {
  padding: 56px 0;
}

.kt-rule {
  height: 1px;
  background: var(--kt-line);
  border: 0;
  margin: 0;
}

.kt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 200px;
  border: 1px solid transparent;
  background: var(--kt-ink);
  color: #0f0f0f;
  font-family: var(--kt-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--kt-ease), color .3s var(--kt-ease), border-color .3s var(--kt-ease);
}

.kt-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .35s var(--kt-ease);
}

/* Only the ground changes on hover. Keeping the label dark holds 6.5:1 on the
   accent; white on this orange is 2.9:1 and fails at any size. */
.kt-btn:hover {
  background: var(--kt-accent);
}

.kt-btn:hover svg {
  transform: translate(3px, -3px);
}

.kt-btn--ghost {
  background: transparent;
  color: var(--kt-ink);
  border-color: var(--kt-line-strong);
}

/* The ghost never fills — only its border answers. */
.kt-btn--ghost:hover {
  background: transparent;
  border-color: var(--kt-accent);
}

/* 11px type would give a 13px-tall tap target. The padding buys a 24px hit area
   and the matching negative margin keeps the label optically where it was. */
.kt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  margin-block: -6px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink);
  text-decoration: none;
}

.kt-link svg {
  width: 12px;
  height: 12px;
  transition: transform .35s var(--kt-ease);
}

.kt-link:hover {
  color: var(--kt-accent);
}

.kt-link:hover svg {
  transform: translate(3px, -3px);
}

/* Visible keyboard focus everywhere in the blog */
.kt-scope a:focus-visible,
.kt-scope button:focus-visible,
.kt-scope input:focus-visible,
.kt-scope summary:focus-visible {
  outline: 2px solid var(--kt-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Scroll reveal — only armed once JS confirms it can un-hide the content.
   Uses the independent `translate` property so it never fights the `transform`
   a card applies on hover. */
html.kt-js .kt-reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .7s var(--kt-ease), translate .7s var(--kt-ease);
}

html.kt-js .kt-reveal.kt-in {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  html.kt-js .kt-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .kt-scope * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Table-of-contents jumps land softly. Scoped by the fact that this stylesheet
   only ships on blog pages, so the rest of the site keeps its own scrolling. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ==========================================================================
   1. BLOG INDEX — hero
   The graphic is a contour field: nested topographic lines. It reads as
   terrain (the studio works out of Wayanad) and as a mapped journey, which is
   what the articles are actually about.
   ========================================================================== */
.kt-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.kt-hero-figure {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -8%;
  width: 68%;
  max-width: 900px;
  aspect-ratio: 960 / 560;
  transform: translateY(-50%);
  background: url("/assets/contour.svg") center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.kt-hero-inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.kt-hero h1 {
  margin: 0;
  font-family: var(--kt-display);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-hero-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--kt-ink-2);
}

/* ==========================================================================
   2. BLOG INDEX — featured article
   ========================================================================== */
.kt-feature {
  padding: 16px 0 48px;
}

.kt-feature[hidden] {
  display: none;
}

/* Section header used by the featured slot, the grid and "continue reading". */
.kt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--kt-line);
}

.kt-head h2 {
  margin: 0;
  font-family: var(--kt-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-label {
  margin: 0;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
}

.kt-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}

.kt-feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--kt-surface-2);
  aspect-ratio: 3 / 2;
}

.kt-feature-media img,
.kt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--kt-ease);
}

.kt-feature-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.kt-feature-body h2 {
  margin: 0;
  font-family: var(--kt-display);
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-feature-body h2 a {
  color: inherit;
  text-decoration: none;
}

/* One link covers the whole card — the image is decorative, not a second tab stop. */
.kt-feature-body h2 a::after,
.kt-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.kt-feature-excerpt {
  margin: 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--kt-ink-2);
}

.kt-feature-card:hover .kt-feature-media img {
  transform: scale(1.04);
}

.kt-feature-card:hover .kt-link {
  color: var(--kt-accent);
}

.kt-feature-card:hover .kt-link svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   3. BLOG INDEX — category filter
   A rule with chips sitting on it, not a row of buttons.
   ========================================================================== */
.kt-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--kt-line);
  margin-bottom: 52px;
}

.kt-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
  margin: -2px;
}

.kt-chips::-webkit-scrollbar {
  display: none;
}

.kt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 200px;
  border: 1px solid var(--kt-line);
  background: transparent;
  color: var(--kt-ink-3);
  font-family: var(--kt-display);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s var(--kt-ease), border-color .25s var(--kt-ease), background-color .25s var(--kt-ease);
}

.kt-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kt-accent);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s var(--kt-ease), transform .25s var(--kt-ease);
}

.kt-chip:hover {
  color: var(--kt-ink);
  border-color: var(--kt-line-strong);
}

.kt-chip[aria-pressed="true"] {
  color: var(--kt-ink);
  background: var(--kt-surface-2);
  border-color: var(--kt-line-strong);
}

.kt-chip[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.kt-chip[hidden] {
  display: none;
}

.kt-count {
  flex: none;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
}

/* ==========================================================================
   4. BLOG INDEX — article grid
   Borderless cards separated by a hairline above the metadata. On hover the
   hairline is redrawn in accent from the left.
   ========================================================================== */
.kt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.kt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .45s var(--kt-ease);
}

.kt-card[hidden] {
  display: none;
}

.kt-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--kt-surface-2);
  aspect-ratio: 4 / 3;
}

/* Deliberately unpositioned: the title's ::after overlay has to resolve against
   .kt-card so the image is part of the click target, not just the text. The
   accent rule is therefore painted as a background over the border edge rather
   than as an absolutely positioned pseudo-element. */
.kt-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--kt-line);
  background-image: linear-gradient(var(--kt-accent), var(--kt-accent));
  background-repeat: no-repeat;
  background-origin: border-box;
  background-position: left top;
  background-size: 0 1px;
  transition: background-size .55s var(--kt-ease);
}

.kt-card-body h3 {
  margin: 0;
  font-family: var(--kt-display);
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.kt-card-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--kt-ink-3);
}

.kt-card .kt-link {
  margin-top: auto;
  padding-top: 4px;
}

.kt-card:hover {
  transform: translateY(-4px);
}

.kt-card:hover .kt-card-media img {
  transform: scale(1.05);
}

.kt-card:hover .kt-card-body {
  background-size: 100% 1px;
}

.kt-card:hover .kt-link {
  color: var(--kt-accent);
}

.kt-card:hover .kt-link svg {
  transform: translate(3px, -3px);
}

.kt-empty {
  padding: 48px 0;
  font-size: 16px;
  color: var(--kt-ink-3);
}

.kt-empty a {
  color: var(--kt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kt-empty[hidden] {
  display: none;
}

/* ==========================================================================
   5. Conversion + newsletter
   ========================================================================== */
.kt-cta-panel {
  background: var(--kt-surface);
  border: 1px solid var(--kt-line);
  border-radius: 32px;
  padding: 68px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.kt-cta-panel h2 {
  margin: 0 0 16px;
  font-family: var(--kt-display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-cta-panel p {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--kt-ink-2);
}

.kt-cta-panel p a {
  color: var(--kt-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--kt-line-strong);
  transition: color .25s var(--kt-ease), text-decoration-color .25s var(--kt-ease);
}

.kt-cta-panel p a:hover {
  color: var(--kt-accent);
  text-decoration-color: var(--kt-accent);
}

.kt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.kt-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding: 52px 0 0;
  border-top: 1px solid var(--kt-line);
}

.kt-news h2 {
  margin: 0 0 10px;
  font-family: var(--kt-display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-news p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--kt-ink-3);
}

.kt-news-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.kt-field {
  flex: 1;
  min-width: 0;
}

.kt-field label {
  display: block;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
  margin-bottom: 10px;
}

.kt-field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--kt-line-strong);
  padding: 10px 0;
  font-family: var(--kt-display);
  font-size: 16px;
  color: var(--kt-ink);
  transition: border-color .3s var(--kt-ease);
}

.kt-field input::placeholder {
  color: var(--kt-ink-4);
}

/* Pointer focus gets the quiet underline; keyboard focus keeps the ring the
   rest of the blog uses — a 1px rule is not a focus indicator on its own. */
.kt-field input:focus {
  border-bottom-color: var(--kt-accent);
}

.kt-field input:focus:not(:focus-visible) {
  outline: none;
}

.kt-news-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--kt-ink-4);
}

.kt-news-note[hidden] {
  display: none;
}

/* ==========================================================================
   6. ARTICLE — hero
   ========================================================================== */
.kt-article-hero {
  padding: 56px 0 0;
}

/* Keeps the title, byline and cover on the same left edge as the layout below. */
.kt-article-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.kt-crumbs {
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
  margin: 0 0 36px;
}

.kt-crumbs ol {
  list-style: none;
  /* the shared sheet sets `ol { display:flex; flex-flow:column }` — override both */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.kt-crumbs a {
  color: var(--kt-ink-4);
  text-decoration: none;
}

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

.kt-crumbs li[aria-current="page"] {
  color: var(--kt-ink-2);
}

.kt-crumbs .kt-sep {
  opacity: .5;
}

.kt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--kt-accent-dim);
  background: var(--kt-accent-wash);
  border-radius: 200px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-accent);
  text-decoration: none;
  transition: border-color .3s var(--kt-ease);
}

.kt-badge:hover {
  border-color: var(--kt-accent);
}

.kt-article-hero h1 {
  margin: 24px 0 0;
  max-width: 17ch;
  font-family: var(--kt-display);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 500;
  color: var(--kt-ink);
}

.kt-article-standfirst {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--kt-ink-2);
}

.kt-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--kt-line);
}

.kt-cover {
  margin: 48px 0 0;
  max-width: 820px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--kt-surface-2);
  aspect-ratio: 3 / 2;
}

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

/* ==========================================================================
   7. ARTICLE — layout
   ========================================================================== */
.kt-layout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 250px;
  gap: 0 60px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 0 0;
  align-items: start;
}

.kt-main {
  max-width: 740px;
  min-width: 0;
}

/* --- Share rail ---------------------------------------------------------- */
.kt-share {
  position: sticky;
  top: var(--kt-sticky-top);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kt-share-label {
  font-family: var(--kt-utility);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
  margin: 0 0 4px;
}

.kt-share-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kt-line);
  border-radius: 50%;
  background: transparent;
  color: var(--kt-ink-3);
  cursor: pointer;
  padding: 0;
  transition: color .3s var(--kt-ease), border-color .3s var(--kt-ease);
}

.kt-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.kt-share-btn:hover {
  color: var(--kt-ink);
  border-color: var(--kt-accent);
}

.kt-share-btn.kt-copied {
  color: var(--kt-accent);
  border-color: var(--kt-accent);
}

/* --- Table of contents: the progress spine ------------------------------- */
.kt-toc {
  position: sticky;
  top: var(--kt-sticky-top);
  max-height: calc(100vh - var(--kt-sticky-top) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.kt-toc-title {
  font-family: var(--kt-utility);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
  margin: 0 0 18px;
}

.kt-toc-list {
  position: relative;
  display: block;
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--kt-line-strong);
}

/* The spine fills with accent as the article is read. Scaled, not resized:
   this runs on every scroll frame, and height would relayout each time. */
.kt-toc-fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--kt-accent);
  transition: transform .18s linear;
  will-change: transform;
}

.kt-toc-list li {
  position: relative;
}

/* 8px + the link's own 6px of padding keeps the 14px optical gap while giving
   each entry a 24px tap target — this list is the mobile navigation too. */
.kt-toc-list li+li {
  margin-top: 8px;
}

.kt-toc-list a {
  display: block;
  padding-block: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--kt-ink-4);
  text-decoration: none;
  transition: color .3s var(--kt-ease);
}

.kt-toc-list a:hover {
  color: var(--kt-ink-2);
}

.kt-toc-list li.kt-sub {
  padding-left: 14px;
}

.kt-toc-list a.kt-current {
  color: var(--kt-ink);
}

/* The marker sits on the spine itself, level with the active heading. */
.kt-toc-list a.kt-current::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kt-accent);
}

/* Mobile: the same list, folded into a disclosure. */
.kt-toc-mobile {
  display: none;
  border: 1px solid var(--kt-line);
  border-radius: 16px;
  margin-bottom: 36px;
  background: var(--kt-surface);
}

.kt-toc-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-ink-2);
}

.kt-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.kt-toc-mobile summary svg {
  width: 12px;
  height: 12px;
  transition: transform .3s var(--kt-ease);
}

.kt-toc-mobile[open] summary svg {
  transform: rotate(180deg);
}

.kt-toc-mobile .kt-toc-list {
  margin: 0 20px 22px;
  border-left-color: var(--kt-line);
}

/* ==========================================================================
   8. ARTICLE — prose
   ========================================================================== */
.kt-prose {
  color: var(--kt-ink-2);
}

.kt-prose>*:first-child {
  margin-top: 0;
}

.kt-prose p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.78;
  color: var(--kt-ink-2);
}

.kt-prose h2 {
  margin: 56px 0 16px;
  font-family: var(--kt-display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 500;
  color: var(--kt-ink);
  scroll-margin-top: calc(var(--kt-sticky-top) + 8px);
}

.kt-prose h3 {
  margin: 40px 0 12px;
  font-family: var(--kt-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 500;
  color: var(--kt-ink);
  scroll-margin-top: calc(var(--kt-sticky-top) + 8px);
}

/* The takeaways box already supplies the gap above the first section. */
.kt-prose>h2:first-child,
.kt-prose>h3:first-child {
  margin-top: 0;
}

.kt-prose a {
  color: var(--kt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.kt-prose strong {
  color: var(--kt-ink);
  font-weight: 600;
}

.kt-prose ul,
.kt-prose ol {
  display: block;
  margin: 0 0 22px;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.78;
}

.kt-prose li {
  margin-bottom: 10px;
}

.kt-prose ul li::marker {
  color: var(--kt-accent);
}

.kt-prose ol li::marker {
  color: var(--kt-ink-4);
  font-family: var(--kt-utility);
  font-size: 14px;
}

.kt-prose blockquote {
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--kt-accent);
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: -.015em;
  color: var(--kt-ink);
}

.kt-prose blockquote p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

.kt-prose figure {
  margin: 40px 0;
}

.kt-prose figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.kt-prose figcaption {
  margin-top: 12px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
}

.kt-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 15px;
}

.kt-prose th,
.kt-prose td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--kt-line);
}

.kt-prose th {
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kt-ink-3);
}

.kt-prose td {
  color: var(--kt-ink-2);
}

.kt-prose pre {
  margin: 32px 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--kt-surface);
  border: 1px solid var(--kt-line);
  overflow-x: auto;
}

.kt-prose code {
  font-family: var(--kt-utility);
  font-size: 14px;
  color: var(--kt-ink);
}

.kt-prose :not(pre)>code {
  background: var(--kt-surface-2);
  border: 1px solid var(--kt-line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
}

.kt-table-scroll {
  overflow-x: auto;
}

/* --- Key takeaways ------------------------------------------------------- */
.kt-takeaways {
  margin: 0 0 48px;
  padding: 28px 30px;
  border: 1px solid var(--kt-accent-dim);
  background: var(--kt-accent-wash);
  border-radius: 20px;
}

.kt-takeaways h2 {
  margin: 0 0 18px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--kt-accent);
  scroll-margin-top: calc(var(--kt-sticky-top) + 8px);
}

.kt-takeaways ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.kt-takeaways li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.62;
  color: var(--kt-ink-2);
}

.kt-takeaways li:last-child {
  margin-bottom: 0;
}

/* 2px, not a hairline — a 1px rule lands on fractional pixels and renders
   at inconsistent weight down a list. */
.kt-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--kt-accent);
}

/* --- Mid-article CTA ----------------------------------------------------- */
.kt-inline-cta {
  margin: 56px 0;
  padding: 28px 0;
  border-top: 1px solid var(--kt-line);
  border-bottom: 1px solid var(--kt-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kt-inline-cta h2 {
  margin: 0 0 8px;
  font-family: var(--kt-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--kt-ink);
  scroll-margin-top: calc(var(--kt-sticky-top) + 8px);
}

.kt-inline-cta p {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--kt-ink-3);
}

/* End-of-article conversion block — same hairline frame, more weight. */
.kt-cta-end {
  margin: 72px 0 0;
  padding: 44px 44px 46px;
  border: 1px solid var(--kt-line);
  border-radius: 24px;
  background: var(--kt-surface);
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.kt-cta-end h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 12px;
}

.kt-cta-end p {
  font-size: 16px;
  color: var(--kt-ink-2);
}

.kt-cta-end .kt-cta-actions {
  justify-content: flex-start;
}

/* ==========================================================================
   9. ARTICLE — after the read
   ========================================================================== */
.kt-author {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--kt-line);
}

.kt-author-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--kt-line-strong);
  background: var(--kt-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kt-utility);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--kt-accent);
}

.kt-author h2 {
  margin: 6px 0 4px;
  font-family: var(--kt-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--kt-ink);
}

.kt-author-role {
  margin: 0 0 10px;
  font-family: var(--kt-utility);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
}

.kt-author-bio {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--kt-ink-3);
}

.kt-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.kt-pager-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 0;
  border-top: 1px solid var(--kt-line);
  text-decoration: none;
  transition: border-color .35s var(--kt-ease);
}

.kt-pager-item:hover {
  border-top-color: var(--kt-accent);
}

.kt-pager-dir {
  font-family: var(--kt-utility);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kt-ink-4);
}

.kt-pager-title {
  font-family: var(--kt-display);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--kt-ink);
}

.kt-pager-item--next {
  text-align: right;
  align-items: flex-end;
}

.kt-pager-item--empty {
  visibility: hidden;
}

/* --- Services strip ------------------------------------------------------ */
.kt-services {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--kt-line);
}

.kt-services h2 {
  margin: 0 0 20px;
  font-family: var(--kt-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--kt-ink);
}

.kt-service-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.kt-service-list a {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--kt-line);
  border-radius: 200px;
  font-size: 14px;
  color: var(--kt-ink-2);
  text-decoration: none;
  transition: color .25s var(--kt-ease), border-color .25s var(--kt-ease);
}

.kt-service-list a:hover {
  color: var(--kt-ink);
  border-color: var(--kt-accent);
}

.kt-services-lede {
  margin: -8px 0 20px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--kt-ink-2);
}

/* --- FAQ -----------------------------------------------------------------
   The takeaways box at the top is the loud one. This is its quiet counterpart:
   hairline-separated rows, no card, so the two bookends read as different
   kinds of thing rather than the same box twice.
   ------------------------------------------------------------------------ */
.kt-faq {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--kt-line);
}

.kt-faq h2 {
  margin-top: 0;
}

.kt-faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--kt-line);
}

.kt-faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kt-prose .kt-faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.kt-prose .kt-faq-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--kt-ink-2);
}

/* --- Continue reading ---------------------------------------------------- */
.kt-related {
  padding: 96px 0 0;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .kt-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 0 44px;
  }

  .kt-share {
    position: static;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
  }

  .kt-share-label {
    margin: 0 6px 0 0;
  }
}

@media (max-width: 991px) {
  .kt-section {
    padding: 64px 0;
  }

  .kt-hero {
    padding: 64px 0 56px;
  }

  .kt-hero-figure {
    width: 92%;
    right: -22%;
    opacity: .8;
  }

  .kt-hero-inner {
    max-width: 100%;
  }

  .kt-feature-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kt-feature-media {
    aspect-ratio: 16 / 10;
  }

  .kt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .kt-cta-panel {
    grid-template-columns: 1fr;
    padding: 44px 32px;
    gap: 32px;
  }

  .kt-cta-actions {
    justify-content: flex-start;
  }

  .kt-news {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kt-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
  }

  .kt-main {
    max-width: 100%;
  }

  .kt-toc {
    display: none;
  }

  .kt-toc-mobile {
    display: block;
  }

  .kt-related {
    padding-top: 72px;
  }
}

@media (max-width: 767px) {
  .kt-article-hero {
    padding-top: 40px;
  }

  /* The last crumb is the article title, so on a phone it would run to three
     lines. One line, elided — the h1 is directly below it anyway. */
  .kt-crumbs li[aria-current="page"] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kt-article-hero h1 {
    max-width: 100%;
  }

  .kt-article-standfirst {
    font-size: 17px;
  }

  .kt-cover {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .kt-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .kt-prose p,
  .kt-prose ul,
  .kt-prose ol {
    font-size: 17px;
  }

  .kt-prose blockquote {
    font-size: 19px;
    padding-left: 20px;
  }

  .kt-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .kt-count {
    text-align: left;
  }

  .kt-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .kt-pager {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kt-pager-item--next {
    text-align: left;
    align-items: flex-start;
  }

  .kt-pager-item--empty {
    display: none;
  }

  .kt-author {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .kt-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .kt-cta-panel {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .kt-btn {
    width: 100%;
    justify-content: center;
  }

  .kt-cta-actions {
    width: 100%;
  }

  .kt-news-form {
    flex-direction: column;
    align-items: stretch;
  }
}