/* ==========================================================================
   THINK NEXT — concept page design system
   --------------------------------------------------------------------------
   One vocabulary, three tiers of departure from the current thinkconsulting.com
   design. Put the tier class on every top-level section alongside `tk-section`:

     .tk-t-big     Boldest. Dark canvas, full-bleed, display type, ticker.
     .tk-t-med     Halfway. Light canvas, one dark band, display type, no ticker.
     .tk-t-small   Closest to today's site. Their serif headings, their square
                   blue buttons, white canvas, conventional rhythm.

   Palette is Think's own blue and charcoal — no secondary hues, no gradients on
   type. Every selector is namespaced `tk-*`, so this file is inert anywhere it
   is not deliberately used. Loaded on the front end AND in the block editor.
   ========================================================================== */

/* Their heading face, re-declared so the block editor renders the Small tier
   faithfully (the theme only loads it on the front end). */
@font-face {
  font-family: "Think Serif";
  src: url("/wp-content/themes/think/fonts/GandhiSerif-Bold-webfont.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

.tk-section {
  /* Brand */
  --tk-blue: #039be5;
  --tk-blue-dark: #0277bd;
  --tk-blue-deep: #01587f;
  --tk-blue-pale: #e1f5fe;

  /* Neutrals — Think's charcoal, cooled slightly for the dark canvas */
  --tk-ink: #12161a;
  --tk-ink-2: #191e24;
  --tk-black: #2e2d2d;
  --tk-grey: #5f5f5f;
  --tk-paper: #ffffff;
  --tk-paper-2: #f4f4f4;

  /* Roles — reset per surface variant below */
  --tk-bg: var(--tk-ink);
  --tk-fg: #f2f5f7;
  --tk-fg-dim: rgba(238, 243, 247, 0.68);
  --tk-accent: var(--tk-blue);
  --tk-line: rgba(190, 214, 230, 0.16);
  --tk-surface: rgba(255, 255, 255, 0.04);
  --tk-surface-2: rgba(255, 255, 255, 0.07);

  /* Layout */
  --tk-max: 1200px;
  --tk-gutter: clamp(20px, 5vw, 56px);
  --tk-radius: 10px;
  --tk-pad: clamp(68px, 8.5vw, 132px);

  /* Type */
  --tk-display: "Sora", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tk-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tk-h1-size: clamp(2.5rem, 1.35rem + 5vw, 5rem);
  --tk-h2-size: clamp(1.95rem, 1.32rem + 2.7vw, 3.4rem);
  --tk-h3-size: clamp(1.3rem, 1.14rem + 0.7vw, 1.65rem);
  --tk-h1-weight: 800;
  --tk-h2-weight: 700;
  --tk-track: -0.03em;
}

/* --------------------------------------------------------------------------
   2. Tiers
   -------------------------------------------------------------------------- */

/* Halfway: same voice, dialled back. */
.tk-t-med {
  --tk-radius: 6px;
  --tk-pad: clamp(60px, 7vw, 108px);
  --tk-h1-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.75rem);
  --tk-h2-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --tk-h3-size: clamp(1.2rem, 1.1rem + 0.42vw, 1.4rem);
  --tk-h1-weight: 700;
  --tk-track: -0.025em;
}

/* Closest to today's site: their serif, their square buttons, their scale. */
.tk-t-small {
  --tk-radius: 0px;
  --tk-pad: clamp(56px, 6.5vw, 96px);
  --tk-max: 1120px;
  --tk-display: "Think Serif", "Ghandi-Serif-Bold", Times, serif;
  --tk-h1-size: clamp(2.05rem, 1.5rem + 2.2vw, 2.95rem);
  --tk-h2-size: clamp(1.6rem, 1.32rem + 1.15vw, 2.3rem);
  --tk-h3-size: clamp(1.15rem, 1.08rem + 0.32vw, 1.35rem);
  --tk-h1-weight: 700;
  --tk-h2-weight: 700;
  --tk-track: 0;
}

/* --------------------------------------------------------------------------
   3. Page shell
   -------------------------------------------------------------------------- */

.tk-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: #ffffff;
}

body.tk-tier-big .tk-page {
  background: #12161a;
}

/* Classic themes (no theme.json) make WordPress re-wrap Group children in
   `.wp-block-group__inner-container` at render time, which would break every
   grid below and stop `.tk-full` escaping its column. Dissolving the wrapper
   makes the rendered tree identical to the one the block editor shows. */
.tk-page .wp-block-group__inner-container {
  display: contents;
}

/* The site header floats over the page. Only the Big tier opens on a dark
   hero, so only that tier needs the header re-coloured. */
body.tk-tier-big #bar {
  background: rgba(18, 22, 26, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(190, 214, 230, 0.14);
}

body.tk-tier-big #bar .menu span,
body.tk-tier-big #bar .menu a,
body.tk-tier-big #bar ul li > a {
  color: #f2f5f7;
}

body.tk-tier-big #bar .menu .hamburger span {
  background: #f2f5f7;
}

body.tk-tier-big #bar svg .st2 {
  fill: #ffffff;
}

body.tk-tier-big #bar input[type="text"],
body.tk-tier-big #bar input[type="search"],
body.tk-tier-big #bar .search-field {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 214, 230, 0.2);
  color: #f2f5f7;
}

body.tk-tier-big #bar input::placeholder {
  color: rgba(238, 243, 247, 0.5);
}

body.tk-2026 .main-content > .dual-triangle,
body.tk-2026 .main-content > .multi-triangle {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Section grid
   Named grid lines give every section a full-bleed background with a
   constrained content column — no wrapper divs, no negative margins.
   -------------------------------------------------------------------------- */

.tk-section {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--tk-gutter), 1fr)
    [wrap-start] minmax(0, var(--tk-max))
    [wrap-end] minmax(var(--tk-gutter), 1fr)
    [full-end];
  row-gap: clamp(14px, 1.6vw, 22px);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding-block: var(--tk-pad);
  scroll-margin-top: 110px;
  background: var(--tk-bg);
  color: var(--tk-fg);
  font-family: var(--tk-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tk-section > * {
  grid-column: wrap;
  min-width: 0;
  margin-block: 0;
}

.tk-section > .tk-full {
  grid-column: full;
}

/* Surfaces ---------------------------------------------------------------- */

.tk-section--light,
.tk-section--pale,
.tk-section--grey {
  --tk-bg: var(--tk-paper);
  --tk-fg: var(--tk-black);
  --tk-fg-dim: var(--tk-grey);
  --tk-accent: var(--tk-blue-deep);
  --tk-line: #e3e6e9;
  --tk-surface: #f7f9fa;
  --tk-surface-2: #ffffff;
}

.tk-section--pale {
  --tk-bg: var(--tk-blue-pale);
  --tk-line: #c2e4f5;
  --tk-surface: rgba(255, 255, 255, 0.62);
  --tk-surface-2: #ffffff;
}

.tk-section--grey {
  --tk-bg: var(--tk-paper-2);
  --tk-line: #e0e0e0;
  --tk-surface: #ffffff;
}

.tk-section--ink {
  --tk-bg: var(--tk-ink-2);
}

.tk-section--tight {
  padding-block: calc(var(--tk-pad) * 0.55);
}

/* A brand rule across the top of a section. */
.tk-section--edge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tk-blue);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   5. Typography
   The parent theme sets bare h1–h6 / p rules; these class-scoped rules win.
   -------------------------------------------------------------------------- */

.tk-section h1,
.tk-section h2,
.tk-section h3,
.tk-section h4,
.tk-section h5,
.tk-section h6 {
  font-family: var(--tk-display);
  color: var(--tk-fg);
  font-weight: 700;
  letter-spacing: var(--tk-track);
  line-height: 1.1;
  margin: 0;
  text-transform: none;
}

/* The theme decorates every h3 with a grey CSS-triangle pseudo-element. */
.tk-section h2::before,
.tk-section h3::before,
.tk-section h4::before {
  content: none;
  display: none;
  border: 0;
}

.tk-section p {
  font-family: var(--tk-body);
  color: var(--tk-fg-dim);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.68;
  margin: 0;
}

.tk-t-small p {
  font-weight: 300;
  line-height: 1.7;
}

.tk-section p + p {
  margin-top: 1.1em;
}

.tk-section a {
  color: var(--tk-accent);
  text-decoration: none;
}

.tk-section strong {
  font-weight: 700;
}

/* Display scale ---------------------------------------------------------- */

.tk-h1 {
  font-size: var(--tk-h1-size) !important;
  font-weight: var(--tk-h1-weight) !important;
  line-height: 1.02 !important;
  max-width: 18ch;
}

.tk-h2 {
  font-size: var(--tk-h2-size) !important;
  font-weight: var(--tk-h2-weight) !important;
  line-height: 1.1 !important;
  max-width: 22ch;
}

.tk-h3 {
  font-size: var(--tk-h3-size) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* The serif runs shorter per line, so it needs a wider measure to avoid
   stranding a single word on the last line. */
.tk-t-small .tk-h1,
.tk-t-small .tk-h2 {
  line-height: 1.16 !important;
}

.tk-t-small .tk-h1 {
  max-width: 24ch;
}

.tk-t-small .tk-h2 {
  max-width: 26ch;
}

.tk-h2--center,
.tk-h1--center {
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
}

/* Emphasis is Think blue — flat, no gradient. Editors get it from the normal
   Bold button inside a heading. */
.tk-h1 strong,
.tk-h2 strong,
.tk-h3 strong {
  color: var(--tk-blue);
  font-weight: inherit;
}

.tk-section--light .tk-h1 strong,
.tk-section--light .tk-h2 strong,
.tk-section--grey .tk-h1 strong,
.tk-section--grey .tk-h2 strong,
.tk-section--pale .tk-h1 strong,
.tk-section--pale .tk-h2 strong {
  color: var(--tk-blue-dark);
}

/* Labels ----------------------------------------------------------------- */

.tk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: var(--tk-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.17em !important;
  text-transform: uppercase;
  color: var(--tk-fg) !important;
  line-height: 1 !important;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius);
  background: var(--tk-surface);
}

.tk-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tk-blue);
  flex: none;
}

.tk-eyebrow--center {
  justify-self: center;
}

/* A plain blue label — no chrome. */
.tk-kicker {
  font-family: var(--tk-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tk-accent) !important;
  margin: 0 !important;
}

/* A short brand rule that sits above a heading. */
.tk-rule {
  justify-self: start;
  width: 56px;
  height: 3px;
  background: var(--tk-blue);
  border: 0;
  margin: 0 !important;
  padding: 0;
}

.tk-rule--center {
  justify-self: center;
}

.tk-lede {
  font-size: clamp(1.05rem, 0.98rem + 0.42vw, 1.28rem) !important;
  line-height: 1.62 !important;
  color: var(--tk-fg-dim) !important;
  max-width: 62ch;
  margin-top: clamp(18px, 2vw, 26px) !important;
}

.tk-lede--center {
  margin-inline: auto;
  text-align: center;
}

.tk-statement {
  font-family: var(--tk-display) !important;
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: var(--tk-track) !important;
  color: var(--tk-fg) !important;
  max-width: 28ch;
  margin-inline: auto !important;
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.tk-hero {
  align-content: center;
  min-height: clamp(500px, 72vh, 740px);
  padding-top: clamp(150px, 17vh, 205px);
  padding-bottom: clamp(70px, 9vw, 110px);
  overflow: hidden;
}

/* Big tier only: dark hero with a single soft brand glow. */
.tk-hero--dark {
  --tk-bg: var(--tk-ink);
  min-height: clamp(560px, 84vh, 850px);
  padding-bottom: clamp(140px, 15vh, 190px);
}

.tk-hero--dark::before {
  content: "";
  position: absolute;
  inset: -25% -12% -10%;
  z-index: -2;
  background:
    radial-gradient(58% 54% at 72% 22%, rgba(3, 155, 229, 0.3), rgba(3, 155, 229, 0.07) 48%, transparent 74%),
    radial-gradient(46% 46% at 14% 76%, rgba(2, 119, 189, 0.24), rgba(2, 119, 189, 0.06) 48%, transparent 74%);
  animation: tk-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

.tk-hero--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(18, 22, 26, 0.45) 0%, rgba(18, 22, 26, 0) 30%, rgba(18, 22, 26, 0.35) 72%, var(--tk-ink) 100%),
    radial-gradient(112% 92% at 50% 32%, transparent 42%, rgba(18, 22, 26, 0.6) 100%),
    linear-gradient(to right, rgba(190, 214, 230, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 214, 230, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
}

/* Medium/Small: light hero, brand blue as a wash rather than a light show. */
.tk-hero--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(62% 78% at 88% 6%, rgba(3, 155, 229, 0.11), transparent 62%),
    radial-gradient(44% 60% at 2% 98%, rgba(3, 155, 229, 0.07), transparent 64%);
}

@keyframes tk-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
  }
}

.tk-hero .tk-h1 {
  margin-top: clamp(18px, 2.2vw, 28px) !important;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.tk-section .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

.tk-section .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tk-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 15px 28px;
  border: 1px solid var(--tk-blue);
  border-radius: var(--tk-radius);
  color: #ffffff;
  background: var(--tk-blue);
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.tk-section .wp-block-button__link::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.22s ease;
}

.tk-section .wp-block-button__link:hover,
.tk-section .wp-block-button__link:focus-visible {
  background: var(--tk-blue-dark);
  border-color: var(--tk-blue-dark);
  color: #ffffff;
}

.tk-section .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* Outline variant — add `tk-btn--ghost` to the Button block. */
.tk-section .tk-btn--ghost .wp-block-button__link {
  background: transparent;
  border-color: var(--tk-line);
  color: var(--tk-fg);
}

.tk-section .tk-btn--ghost .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--tk-blue);
  color: var(--tk-blue);
}

/* Small tier matches the theme's own `.btn.blue`: square and uppercase. */
.tk-t-small .wp-block-button__link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  padding: 15px 30px;
}

.tk-t-small .tk-btn--ghost .wp-block-button__link {
  border-color: var(--tk-blue);
  color: var(--tk-blue-dark);
}

.tk-t-small .tk-btn--ghost .wp-block-button__link:hover {
  background: var(--tk-blue);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. Marquee ticker (Big tier only)
   -------------------------------------------------------------------------- */

.tk-marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(15px, 1.7vw, 22px);
  border-block: 1px solid var(--tk-line);
  background: rgba(3, 155, 229, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  margin-top: clamp(44px, 6vw, 74px);
}

.tk-hero > .tk-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin-top: 0 !important;
  z-index: 1;
}

.tk-marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--tk-body) !important;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: var(--tk-fg) !important;
  margin: 0 !important;
  animation: tk-scroll 52s linear infinite;
  will-change: transform;
}

.tk-marquee:hover .tk-marquee__track {
  animation-play-state: paused;
}

.tk-marquee__track > span {
  padding-inline: 1.5em;
}

@keyframes tk-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.tk-marquee__track:not(.tk-is-ready) {
  animation: none;
}

/* --------------------------------------------------------------------------
   9. Card grid
   Group `.tk-cards` containing Group `.tk-card` children. Numbering is a CSS
   counter, so adding or deleting a card renumbers the set automatically.
   Cards in a row are always equal height, with their links bottom-aligned.
   -------------------------------------------------------------------------- */

.tk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: stretch;
  gap: clamp(16px, 1.6vw, 24px);
  counter-reset: tk-card;
  margin-top: clamp(32px, 4vw, 56px) !important;
}

.tk-cards > * {
  margin-block: 0 !important;
}

.tk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  height: 100%;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-line);
  background: var(--tk-surface);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.tk-card:hover {
  border-color: var(--tk-blue);
  background: var(--tk-surface-2);
  transform: translateY(-3px);
}

/* Auto-numbering. Every property the parent theme sets on `h3:before` (an
   absolutely positioned 0x0 CSS triangle) has to be unset here, or the counter
   renders as a zero-size box. */
.tk-card > :first-child::before {
  counter-increment: tk-card;
  content: counter(tk-card, decimal-leading-zero);
  display: block;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  border: 0;
  font-family: var(--tk-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 13px;
  color: var(--tk-accent);
}

/* Unnumbered variant. */
.tk-cards--plain .tk-card > :first-child::before {
  content: none;
}

/* Rules variant — no box at all, just a brand rule over each column. The
   quietest way to show a set of three, used by the Small tier. */
.tk-cards--rules .tk-card {
  padding: clamp(18px, 1.8vw, 24px) 0 0;
  border: 0;
  border-top: 3px solid var(--tk-blue);
  border-radius: 0;
  background: none;
}

.tk-cards--rules .tk-card:hover {
  background: none;
  transform: none;
}

.tk-card h3,
.tk-card h4 {
  font-size: var(--tk-h3-size) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.tk-card p {
  font-size: 0.97rem !important;
  line-height: 1.62 !important;
  margin: 0 !important;
}

.tk-card p + p {
  margin-top: 1.05em !important;
}

.tk-card .tk-more {
  margin-top: auto !important;
  padding-top: 8px;
}

.tk-card--link {
  cursor: pointer;
}

/* "Learn more" link with a sliding arrow. */
.tk-more {
  font-family: var(--tk-body) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: var(--tk-accent) !important;
  margin: 0 !important;
}

.tk-more a,
a.tk-more {
  color: var(--tk-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s ease;
}

.tk-more a::after,
a.tk-more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.22s ease;
}

.tk-more a:hover,
a.tk-more:hover {
  border-bottom-color: currentColor;
}

.tk-card:hover .tk-more a::after,
.tk-row:hover .tk-more a::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Rows — a quieter list alternative to cards
   -------------------------------------------------------------------------- */

.tk-rows {
  display: grid;
  border-top: 1px solid var(--tk-line);
  margin-top: clamp(30px, 3.6vw, 48px) !important;
}

.tk-rows > * {
  margin-block: 0 !important;
}

.tk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: clamp(24px, 2.6vw, 34px);
  border-bottom: 1px solid var(--tk-line);
}

.tk-row h3 {
  font-size: var(--tk-h3-size) !important;
  margin: 0 !important;
}

.tk-row p {
  margin: 0 !important;
  max-width: 68ch;
}

@media (min-width: 900px) {
  .tk-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) auto;
    align-items: start;
    column-gap: clamp(24px, 3vw, 52px);
  }

  .tk-row .tk-more {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   11. Numbered panels — long-form alternative to cards
   -------------------------------------------------------------------------- */

.tk-panels {
  display: grid;
  counter-reset: tk-panel;
  margin-top: clamp(32px, 4vw, 54px) !important;
  border-top: 1px solid var(--tk-line);
}

.tk-panels > * {
  margin-block: 0 !important;
}

.tk-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: clamp(26px, 3vw, 40px) 0 clamp(26px, 3vw, 40px) clamp(52px, 5.5vw, 86px);
  border-bottom: 1px solid var(--tk-line);
}

.tk-panel::before {
  counter-increment: tk-panel;
  content: counter(tk-panel, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(26px, 3vw, 40px);
  font-family: var(--tk-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--tk-accent);
}

.tk-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--tk-blue);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tk-panel:hover::after {
  width: 100%;
}

.tk-panel h3 {
  font-size: var(--tk-h3-size) !important;
  margin: 0 !important;
}

.tk-panel p {
  margin: 0 !important;
  max-width: 78ch;
}

.tk-panel p + p {
  margin-top: 1.05em !important;
}

@media (min-width: 900px) {
  .tk-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   12. Checklist
   -------------------------------------------------------------------------- */

.tk-check {
  list-style: none !important;
  display: grid;
  gap: 10px;
  /* The parent theme indents every ul; the pills are their own bullets. */
  padding: 0 !important;
  margin-inline: 0 !important;
  margin-top: clamp(24px, 3vw, 34px) !important;
  margin-bottom: 0 !important;
}

@media (min-width: 900px) {
  .tk-check--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
  }
}

.tk-check li {
  position: relative;
  list-style: none;
  padding: 13px 18px 13px 48px;
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-line);
  background: var(--tk-surface);
  font-family: var(--tk-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--tk-fg);
  transition: border-color 0.25s ease;
}

.tk-check li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: var(--tk-blue);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.6l4.6 4.6L19 7.4'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.6l4.6 4.6L19 7.4'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
}

.tk-check li:hover {
  border-color: var(--tk-blue);
}

/* --------------------------------------------------------------------------
   13. Split layout (core Columns)
   -------------------------------------------------------------------------- */

.tk-split.wp-block-columns {
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(28px, 3.4vw, 44px) !important;
  margin-bottom: 0 !important;
}

.tk-split .wp-block-column {
  min-width: 0;
}

@media (min-width: 782px) {
  .tk-split--sticky > .wp-block-column:first-child {
    position: sticky;
    top: 130px;
    align-self: flex-start;
  }
}

/* A lede opening a column shouldn't carry its stack spacing. */
.wp-block-column > .tk-lede:first-child,
.tk-card > .tk-lede:first-child {
  margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   14. Slab — a single emphasised block
   -------------------------------------------------------------------------- */

.tk-slab {
  position: relative;
  box-sizing: border-box;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-line);
  border-top: 3px solid var(--tk-blue);
  background: var(--tk-surface);
  margin-top: clamp(28px, 3.4vw, 44px) !important;
}

/* --------------------------------------------------------------------------
   15. Closing CTA band
   -------------------------------------------------------------------------- */

.tk-cta {
  --tk-bg: var(--tk-ink);
  --tk-fg: #f2f5f7;
  --tk-fg-dim: rgba(238, 243, 247, 0.68);
  --tk-accent: var(--tk-blue);
  --tk-line: rgba(190, 214, 230, 0.18);
  --tk-surface: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(76px, 9vw, 128px);
}

.tk-cta::before {
  content: "";
  position: absolute;
  inset: -35% -20%;
  z-index: -1;
  background:
    radial-gradient(52% 62% at 30% 26%, rgba(3, 155, 229, 0.26), rgba(3, 155, 229, 0.06) 48%, transparent 74%),
    radial-gradient(50% 58% at 74% 74%, rgba(2, 119, 189, 0.22), rgba(2, 119, 189, 0.05) 48%, transparent 74%);
  animation: tk-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Light CTA variant for the Small tier. */
.tk-cta--light {
  --tk-bg: var(--tk-paper-2);
  --tk-fg: var(--tk-black);
  --tk-fg-dim: var(--tk-grey);
  --tk-accent: var(--tk-blue-deep);
  --tk-line: #e0e0e0;
  --tk-surface: #ffffff;
}

.tk-cta--light::before {
  background:
    radial-gradient(56% 66% at 28% 24%, rgba(3, 155, 229, 0.13), transparent 68%),
    radial-gradient(52% 60% at 76% 78%, rgba(3, 155, 229, 0.09), transparent 70%);
}

.tk-cta > * {
  justify-self: center;
}

.tk-cta .wp-block-buttons {
  justify-content: center;
}

.tk-cta .tk-h2 {
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
}

.tk-cta .tk-lede {
  text-align: center;
  margin-inline: auto;
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   16. Motion (classes applied by think-2026.js, front end only)
   -------------------------------------------------------------------------- */

.tk-anim {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--tk-delay, 0ms);
  will-change: opacity, transform;
}

.tk-anim.tk-in {
  opacity: 1;
  transform: none;
}

/* The Small tier only fades — no travel. It is the least showy of the three. */
.tk-t-small .tk-anim,
.tk-t-small.tk-anim {
  transform: none;
  transition-duration: 0.45s;
}

@media (prefers-reduced-motion: reduce) {

  .tk-anim,
  .tk-anim.tk-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tk-hero--dark::before,
  .tk-cta::before,
  .tk-marquee__track {
    animation: none !important;
  }

  .tk-card,
  .tk-check li,
  .tk-panel::after,
  .tk-section .wp-block-button__link {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. Editor-only adjustments
   -------------------------------------------------------------------------- */

.editor-styles-wrapper .tk-section,
.block-editor-writing-flow .tk-section {
  /* Full-bleed sections can't escape the editor canvas; keep them readable. */
  padding-inline: 0;
}

.editor-styles-wrapper .tk-hero {
  min-height: 420px;
  padding-top: clamp(56px, 8vw, 96px);
}

.editor-styles-wrapper .tk-card,
.editor-styles-wrapper .tk-panel,
.editor-styles-wrapper .tk-row {
  outline: 1px dashed rgba(3, 155, 229, 0.25);
  outline-offset: -1px;
}
