/* ── TomD custom styles ────────────────────────────────── */

/* Film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: #a8ff04; color: #000; }

/* ── Header / Nav ───────────────────────────────────────── */
.wp-block-template-part[data-slug="header"],
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  backdrop-filter: blur(14px);
  background: rgba(8,8,8,.75) !important;
  border-bottom: 1px solid #1e1e1e;
}

/* Site logo */
.wp-block-site-logo img { height: 28px !important; width: auto !important; }

/* Nav links */
.wp-block-navigation a {
  color: #8a8a8a !important;
  font-size: .9rem;
  transition: color .2s;
  text-decoration: none !important;
}
.wp-block-navigation a:hover { color: #efefef !important; }

/* Nav button */
.wp-block-navigation .wp-block-button__link,
.wp-block-buttons .wp-block-button__link {
  background: #a8ff04 !important;
  color: #000 !important;
  border-radius: 999px !important;
  padding: .75rem 1.25rem !important;
  font-size: .85rem !important;
  font-weight: 500 !important;
  border: 1px solid #a8ff04 !important;
  transition: all .25s !important;
  text-decoration: none !important;
}
.wp-block-navigation .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button__link:hover {
  background: transparent !important;
  color: #a8ff04 !important;
}

/* ── Global block styles ─────────────────────────────────── */

/* Group blocks */
.wp-block-group { box-sizing: border-box; }

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: #efefef;
}

/* Paragraphs */
p { color: #8a8a8a; }

/* Separator */
.wp-block-separator {
  border-color: #1e1e1e !important;
  border-top: 1px solid #1e1e1e !important;
  margin: 0 !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #efefef !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 999px !important;
  padding: .85rem 1.25rem !important;
  font-size: .85rem !important;
  transition: all .25s !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #a8ff04 !important;
  color: #a8ff04 !important;
}

/* ── Cover block (hero) ──────────────────────────────────── */
.wp-block-cover {
  min-height: 100vh !important;
  min-height: 100svh !important;
}
.wp-block-cover__inner-container { z-index: 2; }

/* ── Custom classes you can apply in editor ──────────────── */

/* .tomd-eyebrow — apply to Paragraph */
.tomd-eyebrow {
  font-size: .75rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: #8a8a8a !important;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .5rem !important;
}
.tomd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: #a8ff04;
  flex-shrink: 0;
}

/* .tomd-display — apply to Heading */
.tomd-display {
  font-size: clamp(2.5rem, 8vw, 7rem) !important;
  line-height: .95 !important;
  letter-spacing: -.02em !important;
}

/* .tomd-section — apply to Group for section spacing */
.tomd-section {
  padding-top: clamp(4rem, 10vw, 8rem) !important;
  padding-bottom: clamp(4rem, 10vw, 8rem) !important;
}

/* .tomd-border-top — apply to Group */
.tomd-border-top { border-top: 1px solid #1e1e1e; }
.tomd-border-bottom { border-bottom: 1px solid #1e1e1e; }

/* .tomd-bg-soft — apply to Group */
.tomd-bg-soft { background: #0f0f0f !important; }

/* .tomd-accent-text — apply to Paragraph or Heading */
.tomd-accent-text { color: #a8ff04 !important; }

/* ── Clients marquee ─────────────────────────────────────── */
.tomd-marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  white-space: nowrap;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  position: relative;
}
.tomd-marquee::before,
.tomd-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
  pointer-events: none;
}
.tomd-marquee::before { left: 0;  background: linear-gradient(90deg,  #080808, transparent); }
.tomd-marquee::after  { right: 0; background: linear-gradient(-90deg, #080808, transparent); }
.tomd-marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: tomd-scroll 36s linear infinite;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: -.01em;
  color: #efefef;
}
.tomd-marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.tomd-marquee-track span::after {
  content: "";
  width: .4rem; height: .4rem;
  border-radius: 999px;
  background: #a8ff04;
  opacity: .8;
}
@keyframes tomd-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Services grid ───────────────────────────────────────── */
.tomd-services {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #1e1e1e;
  border-left: 1px solid #1e1e1e;
}
@media (min-width: 700px)  { .tomd-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tomd-services { grid-template-columns: 1fr 1fr 1fr; } }

.tomd-service {
  border-right: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 260px;
  transition: background .3s;
}
.tomd-service:hover { background: #0f0f0f; }
.tomd-service .num {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  color: #5a5a5a;
  letter-spacing: .1em;
  display: block;
  margin-bottom: 1rem;
  transition: color .3s;
}
.tomd-service:hover .num { color: #a8ff04; }
.tomd-service h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
  color: #efefef;
}
.tomd-service p {
  font-size: .9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: #8a8a8a;
}
.tomd-service .tools {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.tomd-service .tools span {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: .25rem .5rem;
  border: 1px solid #1e1e1e;
  border-radius: 3px;
}

/* ── Work grid ───────────────────────────────────────────── */
.tomd-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .tomd-work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tomd-work-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* WP posts/query loop cards */
.wp-block-post-template {
  gap: 1px !important;
  background: #1e1e1e;
}
.wp-block-post {
  background: #080808;
  transition: background .3s;
}
.wp-block-post:hover { background: #0f0f0f; }
.wp-block-post-title a {
  font-family: 'Syne', sans-serif !important;
  font-weight: 600 !important;
  color: #efefef !important;
  text-decoration: none !important;
  transition: color .3s !important;
}
.wp-block-post-title a:hover { color: #a8ff04 !important; }
.wp-block-post-featured-image img {
  transition: transform .9s !important;
}
.wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}
.wp-block-post-date, .wp-block-post-terms {
  font-size: .75rem !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  color: #5a5a5a !important;
}
.wp-block-post-terms a { color: #a8ff04 !important; }

/* ── Timeline (for About) ────────────────────────────────── */
.tomd-timeline { border-top: 1px solid #1e1e1e; }
.tomd-tl-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #1e1e1e;
}
@media (max-width: 600px) { .tomd-tl-item { grid-template-columns: 1fr; gap: .5rem; } }
.tomd-tl-item:hover .tomd-tl-title { color: #a8ff04; }
.tomd-tl-year {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #5a5a5a;
  padding-top: .2rem;
}
.tomd-tl-year.accent { color: #a8ff04; }
.tomd-tl-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: #efefef;
  margin-bottom: .2rem;
  transition: color .2s;
}
.tomd-tl-company { font-size: .8rem; color: #8a8a8a; }

/* ── Contact section ─────────────────────────────────────── */
.tomd-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 860px) {
  .tomd-contact-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
}
.tomd-calendly {
  aspect-ratio: 4/5;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  overflow: hidden;
}
.tomd-contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #1e1e1e; }
.tomd-contact-list li {
  border-bottom: 1px solid #1e1e1e;
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  transition: padding .25s;
}
.tomd-contact-list li:hover { padding-left: .75rem; }
.tomd-contact-list li:hover .val { color: #a8ff04; }
.tomd-contact-list .key {
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: #8a8a8a;
}
.tomd-contact-list .val {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: #efefef;
  transition: color .3s;
}

/* ── Stats row ───────────────────────────────────────────── */
.tomd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
}
.tomd-stat {
  padding: 1.5rem 1rem;
  border-right: 1px solid #1e1e1e;
}
.tomd-stat:last-child { border-right: 0; }
.tomd-stat .num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: #efefef;
}
.tomd-stat .num sup { font-size: .4em; vertical-align: super; color: #a8ff04; }
.tomd-stat .label {
  margin-top: .4rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* ── Certs ───────────────────────────────────────────────── */
.tomd-certs { display: flex; flex-wrap: wrap; gap: .65rem; }
.tomd-cert {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  font-size: .8rem;
  color: #efefef;
}
.tomd-cert::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #a8ff04;
  box-shadow: 0 0 10px #a8ff04;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.tomd-faq { border-top: 1px solid #1e1e1e; }
.tomd-faq-item { border-bottom: 1px solid #1e1e1e; }
.tomd-faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  letter-spacing: -.01em;
  color: #efefef;
  transition: color .2s;
  user-select: none;
}
.tomd-faq-q:hover { color: #a8ff04; }
.tomd-faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 1px solid #2a2a2a; border-radius: 999px;
  display: grid; place-items: center;
  transition: all .3s; color: #8a8a8a;
}
.tomd-faq-item.open .tomd-faq-icon {
  background: #a8ff04; border-color: #a8ff04;
  transform: rotate(45deg); color: #000;
}
.tomd-faq-a {
  display: none;
  padding-bottom: 1.25rem;
  color: #8a8a8a;
  font-size: .92rem;
  line-height: 1.65;
  max-width: 60ch;
}
.tomd-faq-item.open .tomd-faq-a { display: block; }

/* ── Process steps ───────────────────────────────────────── */
.tomd-process {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #1e1e1e;
  border-left: 1px solid #1e1e1e;
}
@media (min-width: 600px)  { .tomd-process { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tomd-process { grid-template-columns: repeat(4,1fr); } }
.tomd-step {
  border-right: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
@media (max-width: 599px) { .tomd-step { border-right: 0; } }
.tomd-step .num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: #1e1e1e;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.tomd-step .title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: #efefef;
  margin-bottom: .5rem;
}
.tomd-step p { color: #8a8a8a; font-size: .88rem; line-height: 1.6; margin: 0; }

/* ── Reveal animation ────────────────────────────────────── */
.tomd-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.tomd-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tomd-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Training course list ────────────────────────────────── */
.tomd-course-list { border-top: 1px solid #1e1e1e; }
.tomd-course {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid #1e1e1e;
  transition: padding .25s; text-decoration: none;
}
.tomd-course:hover { padding-left: .75rem; }
.tomd-course:hover .tomd-course-title { color: #a8ff04; }
.tomd-course-title {
  font-family: 'Syne', sans-serif; font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: #efefef; transition: color .25s;
}
.tomd-course-meta {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: #8a8a8a; margin-top: .25rem;
}

/* ── Page section wrapper (inner content constraint) ────────── */
.tomd-page-header {
  padding-top: calc(72px + clamp(3rem,8vw,6rem));
  padding-bottom: clamp(2rem,4vw,3.5rem);
  border-bottom: 1px solid #1e1e1e;
}

/* ── Footer ──────────────────────────────────────────────── */
.wp-block-template-part[data-slug="footer"] {
  border-top: 1px solid #1e1e1e !important;
  background: #080808 !important;
}

/* ── Gutenberg editor dark bg ───────────────────────────── */
.editor-styles-wrapper {
  background: #080808 !important;
  color: #efefef !important;
}

/* ── Fix WP full-width constraints ──────────────────────── */
.wp-site-blocks,
.entry-content,
.post-content,
.wp-block-post-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

/* Root padding override (TT25 inherits spacing via useRootPaddingAwareAlignments) */
:where(body) .wp-site-blocks {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove block-gap between header template-part and first content block */
.wp-site-blocks {
  --wp--style--block-gap: 0 !important;
  gap: 0 !important;
}
.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

/* Hero + all top-level groups full bleed */
.hero,
.tomd-marquee,
.wp-block-post-content > .wp-block-group {
  width: 100% !important;
  max-width: none !important;
}

/* Hero sub layout: two columns on desktop */
@media (min-width: 860px) {
  .hero-sub {
    display: grid !important;
    grid-template-columns: 1.2fr auto !important;
    gap: 3rem !important;
    align-items: end !important;
    max-width: 1100px;
  }
}
