/* ===========================================================================
   hypnose-01 — design scheme for the hypnose-01 theme
   Calm/premium hypnosis-coach site. Dark elegant hero, serif display
   headings (Cormorant Garamond), DM Sans body, pill buttons, dark footer.
   Tokens extracted from the live Elementor kit (post-5/post-8.css).
   Fonts loaded via _partials/head/extra.html (Google Fonts).

   MOBILE-FIRST: base rules target phones (the ≤640px baseline); larger
   layouts are layered on via @media (min-width: 640px) and (min-width: 1024px).
   This is the ONLY scheme that loads (colorScheme = "hypnose-01") — neutral.css
   is NOT shipped, so the structural responsive defaults that normally live
   there (overflow guard, grid pattern, hero stacking, burger nav) are
   mirrored here directly, adapted to the design.
   =========================================================================== */

:root {
  /* Brand */
  --color-primary: #1E75E6;
  --color-primary-hover: #1660c4;
  --color-secondary: #212A36;
  --color-accent: #1B2432;   /* near-black navy — dark sections + footer */

  /* Text */
  --color-fg: #1B2432;
  --color-text: #67717E;     /* body copy */
  --color-muted: #475569;
  --color-faint: #9CA3AF;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-bg-alt: #fbfbfb;
  --color-border: #E5E7EB;

  /* Dark-section tokens */
  --color-dark-bg: #1B2432;
  --color-dark-fg: #ffffff;
  --color-dark-body: rgba(255, 255, 255, 0.8);
  --color-dark-border: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 50px;
  --section-pad: clamp(3rem, 7vw, 6rem);   /* ~48px mobile → ~96px desktop */
}

/* Accent for stars */
:root { --color-star: #FBBC05; }

/* ---------------------------------------------------------------------------
   Reset / base — overflow guard mirrors neutral.css (only scheme loaded)
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: clip; }   /* kill any horizontal scroll on phones */

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;   /* 17px mobile baseline */
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

/* Display headings — serif, tight, negative tracking. Fluid clamps so they
   never blow out the viewport on a phone. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;   /* long German compounds must not overflow */
}
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.375rem, 4vw, 2rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin: 0 0 1.25rem; }

/* ---------------------------------------------------------------------------
   Container — 20px gutter mobile → 24px ≥640px, centered, capped at 1140px
   --------------------------------------------------------------------------- */
.container,
.itm-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}
@media (min-width: 640px) {
  .container,
  .itm-container { padding-inline: 24px; }
}

/* ---------------------------------------------------------------------------
   Full-bleed bands — header & footer.
   The itm-base partials put `container` directly on <header>/<footer>, so the
   hypnose-01 backgrounds (white sticky nav bar, dark footer band) were getting
   capped at 1140px and floating mid-page on wide screens. Override the cap so
   the ELEMENT spans the viewport (full-bleed background) while its CONTENT
   stays aligned to the same 1140px column via symmetric inline padding.
   --------------------------------------------------------------------------- */
.itm-header--basic.container,
.itm-footer--columns.container {
  max-width: none;
  width: 100%;
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
}
@media (min-width: 640px) {
  .itm-header--basic.container,
  .itm-footer--columns.container {
    padding-inline: max(24px, calc((100% - var(--container)) / 2));
  }
}

/* ---------------------------------------------------------------------------
   Buttons — pill, DM Sans 500. Comfortable tap target on mobile.
   --------------------------------------------------------------------------- */
.itm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.2px;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 640px) {
  .itm-btn { font-size: 14px; padding: 12px 40px; }
}

.itm-btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.itm-btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 117, 230, 0.25);
}

/* Outline = on-dark secondary: white pill, dark text */
.itm-btn--outline {
  background: #fff;
  color: var(--color-accent);
  border-color: rgba(255, 255, 255, 0.25);
}
.itm-btn--outline:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* On light sections, an outline button should read as a bordered ghost */
.itm-section:not(.itm-theme-dark):not(.itm-section--hero) .itm-btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}
.itm-section:not(.itm-theme-dark):not(.itm-section--hero) .itm-btn--outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-faint);
}

/* ---------------------------------------------------------------------------
   Header — white, sticky. Mobile-first: compact bar, burger drives nav.
   The burger markup (details/summary) is ALWAYS present in HTML; hypnose-01.css
   must hide desktop nav < 768px and hide the burger ≥ 768px itself, because
   neutral.css (which normally does this) is not loaded.
   --------------------------------------------------------------------------- */
.itm-header--basic {
  position: relative;   /* anchor for the absolute mobile dropdown */
  position: sticky;     /* sticky wins for the actual positioning context */
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.itm-header__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: var(--color-accent);
  white-space: nowrap;
}
.itm-header__brand-text:hover { color: var(--color-accent); }

/* Desktop nav: hidden on mobile, shown ≥768px */
.itm-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.itm-header__nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent);
  transition: color .2s ease;
  white-space: nowrap;
}
.itm-header__nav-link:hover { color: var(--color-primary); }

/* Last desktop nav item (Kontakt) rendered as the primary pill button */
.itm-header__nav-link:last-child {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, transform .2s ease;
}
.itm-header__nav-link:last-child:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Phone block — hidden on mobile; appears only on wide screens */
.itm-header__contact { display: none; font-size: 14px; }
.itm-header__phone {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-muted);
}
.itm-header__phone:hover { color: var(--color-primary); }

/* --- Mobile burger (details/summary) — visible < 768px --- */
.itm-header__mobile {
  display: block;
  margin-left: auto;
}
.itm-header__burger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--color-accent);
}
.itm-header__burger::-webkit-details-marker { display: none; }
.itm-header__burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
/* Open state: morph bars into an X for affordance */
.itm-header__mobile[open] .itm-header__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.itm-header__mobile[open] .itm-header__burger-bar:nth-child(2) { opacity: 0; }
.itm-header__mobile[open] .itm-header__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown panel — white card under the sticky header */
.itm-header__mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 20px 1rem;
  box-shadow: 0 16px 32px rgba(27, 36, 50, 0.12);
  z-index: 60;
}
.itm-header__mobile-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-accent);
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border);
}
.itm-header__mobile-link:hover { color: var(--color-primary); }
/* Last mobile link (Kontakt) styled as the primary pill, like desktop */
.itm-header__mobile-link:last-child {
  margin-top: 0.75rem;
  border-bottom: 0;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
}
.itm-header__mobile-link:last-child:hover { background: var(--color-primary-hover); color: #fff; }

/* ≥768px: real nav, no burger */
@media (min-width: 768px) {
  .itm-header--basic { padding-block: 1rem; gap: 1.5rem; }
  .itm-header__brand-text { font-size: 1.6rem; }
  .itm-header__nav { display: flex; }
  .itm-header__mobile { display: none; }
}
@media (min-width: 980px) {
  .itm-header__contact { display: block; }
}

/* ---------------------------------------------------------------------------
   Sections — vertical rhythm
   --------------------------------------------------------------------------- */
.itm-section {
  padding-block: var(--section-pad);
}
.itm-section:nth-of-type(even):not(.itm-theme-dark):not(.itm-section--hero) {
  background: var(--color-bg-alt);
}

/* Dark sections */
.itm-theme-dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-body);
}
.itm-theme-dark h1,
.itm-theme-dark h2,
.itm-theme-dark h3,
.itm-theme-dark h4,
.itm-theme-dark h5,
.itm-theme-dark h6 { color: var(--color-dark-fg); }
.itm-theme-dark p { color: var(--color-dark-body); }
.itm-theme-dark a { color: #fff; }

/* ---------------------------------------------------------------------------
   Hero — full-bleed dark stage. Media is a DIRECT child of the section
   (outside .itm-container) so inset:0 is truly full-bleed.
   Mobile-first: svh height + generous padding so it reads even with no image.
   --------------------------------------------------------------------------- */
.itm-section--hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70svh;                       /* svh avoids the iOS URL-bar jump */
  padding-block: clamp(4rem, 14vh, 7rem);  /* generous even without an image */
  background: var(--color-accent);         /* fallback when no bg image (e.g. /kontakt) */
  color: #fff;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .itm-section--hero { min-height: 85vh; padding-block: clamp(5rem, 12vh, 9rem); }
}

/* Background media: absolute full-bleed behind content (mirrors neutral.css) */
.itm-section--hero .itm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.itm-section--hero .itm-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark overlay gradient for legibility */
.itm-section--hero .itm-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 36, 50, 0.7) 0%,
    rgba(27, 36, 50, 0.78) 55%,
    rgba(27, 36, 50, 0.88) 100%
  );
}

/* Content stays in front — container is z-1, keep redundant safety */
.itm-section--hero .itm-container { position: relative; z-index: 1; }
.itm-hero__content { position: relative; z-index: 1; max-width: 820px; }

.itm-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}
.itm-hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.itm-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem;
  max-width: 60ch;
}
.itm-hero__body { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; }
.itm-hero__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Very small screens: full-width stacked buttons */
@media (max-width: 479px) {
  .itm-hero__buttons { flex-direction: column; align-items: stretch; }
  .itm-hero__buttons a { width: 100%; text-align: center; }
}

/* ===========================================================================
   STRUCTURAL GRID PATTERN — mirrors neutral.css (not loaded here).
   1 col mobile → 2 cols ≥640px → repeat(var(--itm-cols, 3)) ≥1024px.
   Section templates emit `style="--itm-cols: N"` so media queries stay in
   control instead of inline grid-template-columns. min-width:0 children
   prevent long words from forcing horizontal overflow.
   =========================================================================== */
.itm-cards__grid,
.itm-features__grid,
.itm-gallery__grid,
.itm-testimonials__grid,
.itm-posts__grid,
.itm-related__grid,
.itm-blog-list__grid,
.itm-author-profile__posts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .itm-cards__grid,
  .itm-features__grid,
  .itm-gallery__grid,
  .itm-testimonials__grid,
  .itm-posts__grid,
  .itm-related__grid,
  .itm-blog-list__grid,
  .itm-author-profile__posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .itm-cards__grid,
  .itm-features__grid,
  .itm-gallery__grid,
  .itm-testimonials__grid,
  .itm-posts__grid,
  .itm-related__grid,
  .itm-blog-list__grid,
  .itm-author-profile__posts-grid {
    grid-template-columns: repeat(var(--itm-cols, 3), minmax(0, 1fr));
  }
}
/* grid children must be allowed to shrink (prevents text overflow) */
.itm-cards__grid > *, .itm-features__grid > *, .itm-gallery__grid > *,
.itm-testimonials__grid > *, .itm-posts__grid > *, .itm-related__grid > *,
.itm-blog-list__grid > *, .itm-author-profile__posts-grid > * { min-width: 0; }

/* ---------------------------------------------------------------------------
   text-image — single column mobile, 2-col only ≥1024px. Image always
   full-width rounded. On ≥1024px, "img-left" puts the media first.
   --------------------------------------------------------------------------- */
.itm-text-image__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .itm-text-image__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.itm-text-image__content { min-width: 0; }
.itm-text-image__media { min-width: 0; }
.itm-text-image__title { margin-bottom: 1rem; }
.itm-text-image__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.itm-text-image__img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}
/* Image-left layout only applies once we're in 2-col territory. On mobile
   the image follows its source order (consistent: image after text). */
.itm-text-image__media.order-first { order: 0; }
@media (min-width: 1024px) {
  .itm-text-image__media.order-first { order: -1; }
}

/* ---------------------------------------------------------------------------
   cards
   --------------------------------------------------------------------------- */
.itm-cards__title { margin-bottom: 0.5rem; }
.itm-cards__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}
.itm-theme-dark .itm-cards__subtitle { color: var(--color-dark-body); }

.itm-cards__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 640px) { .itm-cards__card { padding: 2rem; } }
.itm-cards__card--linked { padding: 0; overflow: hidden; }
.itm-cards__card--linked .itm-cards__content { padding: 1.75rem; }
@media (min-width: 640px) { .itm-cards__card--linked .itm-cards__content { padding: 2rem; } }

.itm-cards__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(27, 36, 50, 0.08);
  border-color: #d6dae0;
}

/* Translucent cards on dark sections (book cards) */
.itm-theme-dark .itm-cards__card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-dark-border);
}
.itm-theme-dark .itm-cards__card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.itm-cards__image {
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
}
.itm-cards__image img { width: 100%; height: 100%; object-fit: contain; }

.itm-cards__icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.itm-cards__item-title { font-size: clamp(1.3rem, 3.5vw, 1.5rem); margin-bottom: 0.5rem; }
.itm-cards__text { font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
.itm-cards__text p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   logos — grayscale flex row, wraps on mobile, smaller logos on phones
   --------------------------------------------------------------------------- */
.itm-logos__title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .itm-logos__title { margin-bottom: 2.5rem; } }
.itm-logos__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}
@media (min-width: 640px) { .itm-logos__grid { gap: 2.5rem 3rem; } }
.itm-logos__item img {
  max-height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity .2s ease, filter .2s ease;
}
@media (min-width: 640px) { .itm-logos__item img { max-height: 56px; } }
.itm-logos__item:hover img { opacity: 1; filter: grayscale(0); }

/* ---------------------------------------------------------------------------
   testimonials — uses the shared grid pattern above (1/2/3). The default
   3-col happens at ≥1024px via --itm-cols fallback (no inline --itm-cols
   is emitted for testimonials, so it lands on the default 3).
   --------------------------------------------------------------------------- */
.itm-testimonials__title { text-align: center; margin-bottom: 2.5rem; }
.itm-testimonials__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
@media (min-width: 640px) { .itm-testimonials__card { padding: 2rem; } }
.itm-testimonials__rating {
  color: var(--color-star);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 0 0 1rem;
}
.itm-testimonials__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--color-fg);
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) { .itm-testimonials__quote { font-size: 1.4rem; } }
.itm-testimonials__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.itm-testimonials__avatar img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.itm-testimonials__author {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-fg);
  margin: 0;
}
.itm-testimonials__role {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-faint);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   rich-text + prose
   --------------------------------------------------------------------------- */
.itm-rich-text__inner { max-width: 720px; margin-inline: auto; }
.itm-rich-text__title { margin-bottom: 1.5rem; }

.prose, .itm-prose {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;       /* 17px mobile */
  line-height: 1.65;
  color: var(--color-text);
  overflow-wrap: break-word;  /* long words / URLs never overflow */
}
@media (min-width: 1024px) {
  .prose, .itm-prose { font-size: 1.25rem; }   /* 20px desktop */
}
.prose h2, .itm-prose h2 { margin-top: 2.5rem; }
.prose h3, .itm-prose h3 { margin-top: 2rem; }
.prose a, .itm-prose a { color: var(--color-primary); text-decoration: underline; }
.prose ul, .prose ol, .itm-prose ul, .itm-prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li, .itm-prose li { margin-bottom: 0.4rem; }

/* Long-content safety: tables and code/pre must scroll internally, not the page */
.prose table, .itm-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose pre, .itm-prose pre { overflow-x: auto; max-width: 100%; }
.prose img, .itm-prose img { border-radius: var(--radius-card); }

/* Large serif pull-quote with primary left border */
.prose blockquote,
.itm-prose blockquote,
.itm-rich-text__body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.3;
  color: var(--color-fg);
}
.prose blockquote p:last-child,
.itm-prose blockquote p:last-child { margin-bottom: 0; }

.itm-theme-dark .prose,
.itm-theme-dark .itm-prose { color: var(--color-dark-body); }
.itm-theme-dark blockquote { color: #fff; }

/* ---------------------------------------------------------------------------
   cta
   --------------------------------------------------------------------------- */
.itm-cta__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.itm-cta__title { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.itm-cta__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  margin-bottom: 2rem;
}
.itm-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------------------------------------------------------------------------
   contact section — single column mobile (details, then form),
   2-col only ≥1024px. Inputs use 16px to prevent iOS zoom-on-focus.
   --------------------------------------------------------------------------- */
.itm-contact__title { margin-bottom: 1rem; }
.itm-contact__intro {
  font-family: var(--font-body);
  font-weight: 300;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.itm-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .itm-contact__layout { grid-template-columns: 1fr 1.2fr; gap: 64px; }
}
.itm-contact__details {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  min-width: 0;
}
.itm-contact__form-wrap { min-width: 0; }
.itm-contact__address {
  font-style: normal;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.itm-contact__phone a,
.itm-contact__email a { color: var(--color-fg); font-weight: 500; }
.itm-contact__phone a:hover,
.itm-contact__email a:hover { color: var(--color-primary); }
.itm-contact__hours { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--color-muted); }

/* Form inputs */
.itm-contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.itm-contact__field { display: flex; flex-direction: column; gap: 0.4rem; }
.itm-contact__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-fg);
}
.itm-contact__input,
.itm-contact__textarea {
  font-family: var(--font-body);
  font-size: 16px;            /* 16px prevents iOS zoom-on-focus */
  color: var(--color-fg);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  width: 100%;
  max-width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.itm-contact__input:focus,
.itm-contact__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 117, 230, 0.15);
}
.itm-contact__textarea { resize: vertical; min-height: 140px; }
.itm-contact__submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 40px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.itm-contact__submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

/* Disabled form fallback (no Formspree configured) */
.itm-contact__form--disabled {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  background: var(--color-bg-alt);
}
.itm-contact__form-note { color: var(--color-faint); margin: 0; font-family: var(--font-body); }

/* ---------------------------------------------------------------------------
   Footer — dark columns. 1 col mobile → 2 cols ≥640px → 4 cols ≥1024px.
   --------------------------------------------------------------------------- */
.itm-footer--columns {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-family: var(--font-body);
  font-weight: 300;
}
.itm-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .itm-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .itm-footer__columns { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 3rem; }
}
.itm-footer__columns > * { min-width: 0; }
.itm-footer__col-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0 0 1.25rem;
}
.itm-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 0.75rem;
}
.itm-footer__brand-slogan,
.itm-footer__brand-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.itm-footer__col-list { list-style: none; margin: 0; padding: 0; }
.itm-footer__col-list li { margin-bottom: 0.6rem; }
.itm-footer__col-link,
.itm-footer__col-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color .2s ease;
  overflow-wrap: break-word;
}
.itm-footer__col-link:hover,
.itm-footer__col-list a:hover { color: #fff; }
.itm-footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.itm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-dark-border);
}
.itm-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
.itm-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.itm-footer__legal-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color .2s ease;
}
.itm-footer__legal-link:hover { color: #fff; }
.itm-footer__social { display: flex; flex-wrap: wrap; gap: 1rem; }
.itm-footer__social-link { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }
.itm-footer__social-link:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   Blog — list + single + author. Grids use the shared 1/2/3 pattern above.
   --------------------------------------------------------------------------- */
.itm-blog-list,
.itm-post {
  padding-block: var(--section-pad);
}
.itm-blog-list__title { margin-bottom: 2rem; }
@media (min-width: 640px) { .itm-blog-list__title { margin-bottom: 2.5rem; } }

/* ---------------------------------------------------------------------------
   posts — "latest blog posts" home section. Centered header + "more" link.
   Grid (1/2/3 cols) is the shared pattern above; cards are .itm-article-card.
   --------------------------------------------------------------------------- */
.itm-posts__title { text-align: center; margin-bottom: 0.75rem; }
.itm-posts__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-text);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}
.itm-theme-dark .itm-posts__subtitle { color: var(--color-dark-body); }
/* fallback top margin when there is no subtitle */
.itm-posts__title + .itm-posts__grid { margin-top: 2.5rem; }
.itm-posts__more { text-align: center; margin: 2.5rem 0 0; }
.itm-posts__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-primary);
  transition: gap .2s ease, color .2s ease;
}
.itm-posts__more-link::after { content: "\2192"; }   /* → */
.itm-posts__more-link:hover { gap: 0.7rem; color: var(--color-primary-hover); }

/* article cards */
.itm-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.itm-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(27, 36, 50, 0.08);
}
.itm-article-card__image-link { display: block; }
.itm-article-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.itm-article-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 640px) { .itm-article-card__body { padding: 1.75rem; } }
.itm-article-card__title { font-size: clamp(1.3rem, 3.5vw, 1.5rem); margin: 0; }
.itm-article-card__title-link { color: var(--color-fg); }
.itm-article-card__title-link:hover { color: var(--color-primary); }
.itm-article-card__meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.itm-article-card__summary {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
  overflow-wrap: break-word;
}
.itm-article-card__summary h2 { display: none; }   /* summary may capture body H2s */
.itm-article-card__summary p { margin-bottom: 0; }

/* single post */
.itm-post { max-width: 820px; }
.itm-post__featured-image { margin-bottom: 2rem; }
.itm-post__image {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  max-height: 480px;
}
.itm-post__title { margin-bottom: 1rem; }
.itm-post__content { max-width: 720px; }

.itm-post-meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
}
.itm-post-meta__author-link { color: var(--color-primary); }

.itm-post__tags { margin: 2.5rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.itm-post__tags-label { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-faint); }
.itm-post__tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
}
.itm-post__tag:hover { border-color: var(--color-primary); color: var(--color-primary); }

.itm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.5rem 0 2.5rem; }
.itm-share__label { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-faint); }
.itm-share__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.itm-share__link:hover { border-color: var(--color-primary); color: var(--color-primary); }

.itm-post__prevnext {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
  padding-block: 1.5rem;
  border-block: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .itm-post__prevnext { flex-direction: row; justify-content: space-between; }
}
.itm-post__prev { margin-right: auto; }
.itm-post__next { margin-left: auto; }

/* related — heading + shared grid pattern (--itm-cols default 3) */
.itm-related { margin-top: 3rem; }
.itm-related__heading { font-size: clamp(1.5rem, 4vw, 1.75rem); margin-bottom: 1.5rem; }

/* author card (in-post) — stacks on mobile, row ≥480px */
.itm-post__authors { margin-top: 3rem; }
.itm-author-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
@media (min-width: 480px) {
  .itm-author-card { flex-direction: row; align-items: center; gap: 1.5rem; padding: 1.75rem; }
}
.itm-author-card__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@media (min-width: 480px) { .itm-author-card__photo { width: 88px; height: 88px; } }
.itm-author-card__name { font-size: 1.35rem; margin: 0 0 0.25rem; }
.itm-author-card__name-link { color: var(--color-fg); }
.itm-author-card__job-title { font-family: var(--font-body); color: var(--color-primary); font-size: 0.95rem; margin: 0 0 0.25rem; }
.itm-author-card__post-count { font-family: var(--font-body); color: var(--color-faint); font-size: 0.85rem; margin: 0; }

/* author profile page */
.itm-author-profile { padding-block: var(--section-pad); }
.itm-author-profile__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .itm-author-profile__header { flex-direction: row; align-items: center; gap: 2rem; flex-wrap: wrap; }
}
.itm-author-profile__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
@media (min-width: 640px) { .itm-author-profile__photo { width: 160px; height: 160px; } }
.itm-author-profile__name { margin: 0 0 0.5rem; }
.itm-author-profile__job-title { font-family: var(--font-body); color: var(--color-primary); font-size: 1.1rem; margin: 0; }
.itm-author-profile__bio { max-width: 720px; margin-bottom: 3rem; }
.itm-author-profile__posts-title { margin-bottom: 2rem; }

/* breadcrumbs */
.itm-breadcrumbs { margin-bottom: 1.5rem; }
.itm-breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-faint);
}
.itm-breadcrumbs__item:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--color-faint); }
.itm-breadcrumbs__link { color: var(--color-muted); }
.itm-breadcrumbs__link:hover { color: var(--color-primary); }
.itm-breadcrumbs__item--current { color: var(--color-faint); }

/* pagination */
.itm-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.itm-pagination a,
.itm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-muted);
}
.itm-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.itm-pagination .active,
.itm-pagination [aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------------------------------------------------------------------------
   Standalone page content (legal pages etc.) rendered via itm-prose
   --------------------------------------------------------------------------- */
.itm-page { padding-block: var(--section-pad); }
.itm-page__title { margin-bottom: 1.5rem; }
.itm-page .itm-prose { max-width: 760px; }

/* ---------------------------------------------------------------------------
   Motion safety
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .itm-btn:hover,
  .itm-cards__card:hover,
  .itm-article-card:hover { transform: none; }
  .itm-header__burger-bar { transition: none; }
}
