:root {
  --navy-950: #020b16;
  --navy-900: #061323;
  --navy-800: #0a1d32;
  --navy-700: #122b45;
  --ink-900: #142233;
  --ink-700: #405369;
  --ink-500: #68798b;
  --blue-700: #0f5d91;
  --blue-600: #176fa8;
  --blue-100: #eaf4fb;
  --gold-400: #d0ae58;
  --gold-300: #dcc17c;
  --gold-100: #f5ead0;
  --paper: #ffffff;
  --mist: #f3f7fa;
  --mist-strong: #e9f0f5;
  --line: #d9e3ea;
  --dark-line: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 12px 34px rgba(17, 39, 62, 0.08);
  --shadow-lg: 0 28px 70px rgba(5, 20, 37, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --reading: 760px;
  --header-height: 84px;
  --section-space: clamp(76px, 8vw, 116px);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

/* Consultation case studies: large, sequential presentation. */
.tb-case-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.tb-case-stack > .wp-block-column {
  flex-basis: auto !important;
  width: 100%;
}

.tb-case-study {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tb-case-study > h3,
.tb-case-study > p {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.tb-case-study > h3 {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-align: left;
}

.tb-case-study .tb-source-figure {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.tb-case-study > p {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.tb-case-study--split-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.tb-case-study--split-media > :where(h3, p, ul) {
  grid-column: 1 / -1;
  width: min(100%, 1080px);
  margin-inline: auto;
}

.tb-case-study--split-media > .tb-source-figure {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
}

.tb-case-study--split-media > .tb-source-figure img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

@media (max-width: 781px) {
  .tb-case-stack {
    gap: 2.5rem;
  }

  .tb-case-study--split-media {
    grid-template-columns: 1fr;
  }

  .tb-case-study--split-media > * {
    grid-column: 1;
  }

  .tb-case-study--split-media > .tb-source-figure {
    aspect-ratio: auto;
  }

  .tb-case-study--split-media > .tb-source-figure img {
    height: auto !important;
  }
}

/* Keep the two scale-up device visuals at the same apparent size. */
.tb-platform-grid:not(.tb-platform-grid--natural) .tb-source-figure {
  display: grid;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.tb-platform-grid:not(.tb-platform-grid--natural) .tb-source-figure img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 781px) {
  .tb-platform-grid:not(.tb-platform-grid--natural) .tb-source-figure {
    aspect-ratio: auto;
  }

  .tb-platform-grid:not(.tb-platform-grid--natural) .tb-source-figure img {
    height: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink-700);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink-900);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.45;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

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

.container--reading {
  width: min(calc(100% - 48px), var(--reading));
  margin-inline: auto;
}

.content-narrow {
  width: min(100%, var(--reading));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  color: var(--navy-900);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

:focus-visible {
  outline: 3px solid #2b98e4;
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--paper);
  background: rgba(2, 11, 22, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-brand img,
.custom-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}

.site-brand__text,
.brand-copy {
  display: grid;
  gap: 1px;
}

.site-brand__text strong,
.brand-copy strong,
.site-title,
.site-brand__name {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.site-brand__text small,
.brand-copy small,
.site-description {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list,
.site-navigation .menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.site-navigation .menu a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.nav-list a::after,
.site-navigation .menu a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list [aria-current="page"],
.site-navigation .menu a:hover,
.site-navigation .current-menu-item > a {
  color: var(--paper);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list [aria-current="page"]::after,
.site-navigation .menu a:hover::after,
.site-navigation .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  display: grid;
  min-width: 112px;
  gap: 0;
  text-align: right;
}

.header-contact small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
  line-height: 1.2;
}

.header-contact a {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: var(--navy-900);
  background: var(--gold-300);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease;
}

.header-cta:hover {
  background: #ead292;
  transform: scale(1.02);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.menu-toggle__lines,
.menu-toggle-lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__lines,
.menu-toggle-lines {
  position: relative;
  display: block;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle__lines::before,
.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle__lines::after,
.menu-toggle-lines::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines,
.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before,
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after,
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Shared type and controls */
.section-kicker,
.page-hero__eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker::before,
.page-hero__eyebrow::before,
.hero-eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-heading {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: 0.02em;
}

.section-heading--small {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.section-lead {
  max-width: 700px;
  margin: 1.35rem 0 0;
  color: var(--ink-700);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 2;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-intro .section-lead {
  margin: 0;
}

.button,
.wp-element-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 28px;
  color: var(--paper);
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "→";
  font-weight: 400;
}

.button:hover,
.wp-element-button:hover {
  color: var(--paper);
  background: var(--navy-800);
  border-color: var(--navy-800);
  box-shadow: 0 12px 28px rgba(8, 33, 57, 0.16);
  transform: scale(1.02);
}

.button--primary {
  color: var(--paper);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button--disabled,
.button.is-disabled,
.is-disabled.button {
  pointer-events: none;
  cursor: default;
  opacity: 0.58;
  filter: saturate(0.45);
}

.button--light {
  color: var(--navy-900);
  background: var(--paper);
  border-color: var(--paper);
}

.button--light:hover {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button--outline {
  color: var(--blue-700);
  background: transparent;
  border-color: rgba(23, 111, 168, 0.35);
}

.button--outline:hover {
  color: var(--paper);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button--gold {
  color: var(--navy-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(15, 93, 145, 0.25);
  text-underline-offset: 5px;
}

.text-link::after {
  content: "→";
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Home hero */
.home-hero,
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(820px, calc(100svh - var(--header-height)));
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-950);
}

.home-hero::before,
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 11, 22, 0.98) 0%, rgba(2, 11, 22, 0.88) 38%, rgba(2, 11, 22, 0.3) 72%, rgba(2, 11, 22, 0.12) 100%),
    url("../images/fv.jpg") 72% center / cover no-repeat;
}

.home-hero::after,
.hero::after {
  position: absolute;
  z-index: -1;
  right: -180px;
  bottom: -360px;
  width: 800px;
  height: 800px;
  content: "";
  opacity: 0.24;
  background: url("../images/deco-d1-radial-glow.png") center / contain no-repeat;
  animation: float-decoration 12s ease-in-out infinite;
}

.home-hero__inner,
.hero-inner {
  display: grid;
  width: min(calc(100% - 64px), 1360px);
  min-height: min(820px, calc(100svh - var(--header-height)));
  align-items: center;
  margin-inline: auto;
  padding-block: 80px;
}

.home-hero__content,
.hero-copy {
  max-width: 690px;
}

.home-hero .section-kicker,
.home-hero .hero-eyebrow,
.hero .section-kicker,
.hero .hero-eyebrow {
  color: var(--gold-300);
}

.home-hero h1,
.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(3.15rem, 5.8vw, 5.35rem);
  line-height: 1.32;
  letter-spacing: 0.025em;
}

.home-hero h1 em,
.hero h1 em {
  color: var(--gold-300);
  font-style: normal;
}

.home-hero__lead,
.hero-lead {
  max-width: 630px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.02rem;
  line-height: 2;
}

.home-hero__fields,
.hero-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero__fields a,
.hero-fields a,
.hero-fields span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 15px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.home-hero__note,
.hero-note {
  position: absolute;
  right: max(32px, calc((100vw - 1360px) / 2));
  bottom: 40px;
  width: min(360px, calc(100% - 48px));
  padding: 22px 24px;
  background: rgba(7, 25, 44, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.home-hero__note strong,
.hero-note strong {
  display: block;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 1.03rem;
}

.home-hero__note p,
.hero-note p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  line-height: 1.75;
}

/* Inner page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-900);
}

.page-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 11, 22, 0.98), rgba(2, 11, 22, 0.78) 55%, rgba(2, 11, 22, 0.34)),
    var(--page-hero-image, url("../images/fv.jpg")) center / cover no-repeat;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  top: -340px;
  right: -280px;
  width: 760px;
  height: 760px;
  content: "";
  opacity: 0.22;
  background: url("../images/deco-d8-image-mask.png") center / contain no-repeat;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  min-height: 440px;
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  padding-block: 72px;
}

.page-hero__copy {
  position: relative;
  z-index: 2;
}

.page-hero__eyebrow {
  color: var(--gold-300);
}

.page-hero h1,
.page-hero__title {
  max-width: 860px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.35;
}

.page-hero__lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.95;
}

.page-hero__visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-hero__visual > img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.page-hero--home,
.page-hero--home .page-hero__inner {
  min-height: min(820px, calc(100svh - var(--header-height)));
}

.page-hero--home::before {
  background:
    radial-gradient(circle at 80% 48%, rgba(26, 104, 157, 0.18), transparent 42%),
    linear-gradient(100deg, rgba(2, 11, 22, 0.99), rgba(2, 11, 22, 0.88) 55%, rgba(2, 11, 22, 0.68));
}

.page-hero--home .page-hero__inner {
  width: min(calc(100% - 64px), 1360px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.page-hero--home .page-hero__title {
  font-size: clamp(3.15rem, 5.4vw, 5.2rem);
  line-height: 1.34;
}

.page-hero--home .page-hero__visual {
  min-height: 620px;
  border-color: rgba(255, 255, 255, 0.1);
}

.page-hero--home .page-hero__visual > img {
  min-height: 620px;
}

.page-hero__badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(4, 19, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.page-hero__badge strong {
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.page-hero__badge span {
  font-size: 0.72rem;
  line-height: 1.65;
}

.page-hero .button--outline {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.42);
}

.page-hero .button--outline:hover {
  color: var(--navy-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

/* Sections and grids */
.page-section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-space);
  overflow: hidden;
}

.section {
  padding-block: var(--section-space);
}

.page-section--compact {
  padding-block: clamp(56px, 6vw, 82px);
}

.page-section--mist {
  background-color: var(--mist);
  background-image: url("../images/deco-d2-glass-membrane.png");
  background-position: calc(100% + 260px) 50%;
  background-repeat: no-repeat;
  background-size: 560px auto;
}

.page-section--navy {
  color: rgba(255, 255, 255, 0.72);
  background-color: var(--navy-900);
  background-image: url("../images/deco-d7-porous-membrane.png");
  background-position: calc(100% + 180px) -120px;
  background-repeat: no-repeat;
  background-size: 620px auto;
}

.page-section--navy .section-kicker {
  color: var(--gold-300);
}

.page-section--navy .section-heading,
.page-section--navy h2,
.page-section--navy h3 {
  color: var(--paper);
}

.page-section--navy .section-lead,
.page-section--navy p {
  color: rgba(255, 255, 255, 0.68);
}

.page-section--particles::before {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: -240px;
  width: 680px;
  height: 680px;
  content: "";
  opacity: 0.5;
  background: url("../images/deco-d3-particles-light.png") center / contain no-repeat;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
}

.content-grid--top {
  align-items: start;
}

.content-grid--reverse > :first-child {
  order: 2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.card {
  position: relative;
  overflow: hidden;
  color: var(--ink-700);
  background-color: var(--paper);
  background-image: url("../images/deco-d6-card-line.png");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 76% auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card__image,
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-950);
}

.card > img.card__image,
.card > img.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__image img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .card__image img,
.card:hover .card-image img {
  transform: scale(1.025);
}

.card__body,
.card-body {
  padding: 28px;
}

.card__meta,
.card-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-600);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.card h2,
.card h3,
.card__title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  line-height: 1.55;
}

.card p {
  margin: 14px 0 0;
  font-size: 0.91rem;
  line-height: 1.85;
}

.card ul,
.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.card li,
.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.75;
}

.card li::before,
.check-list li::before {
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--gold-400);
}

.content-grid > div > ul:not([class]),
.entry-content ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.content-grid > div > ul:not([class]) li,
.entry-content ul li {
  position: relative;
  padding-left: 19px;
}

.content-grid > div > ul:not([class]) li::before,
.entry-content ul li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--gold-400);
}

.card .text-link,
.card .button {
  margin-top: 20px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--contain img {
  object-fit: contain;
  padding: clamp(18px, 4vw, 44px);
}

.media-frame figcaption {
  padding: 12px 18px 16px;
  color: var(--ink-500);
  font-size: 0.7rem;
  line-height: 1.6;
}

.notice-panel {
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink-700);
  background: var(--blue-100);
  border-left: 3px solid var(--blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.notice-panel h2,
.notice-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 12px;
  color: var(--blue-700);
  background: var(--blue-100);
  border: 1px solid rgba(23, 111, 168, 0.15);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Home section specialities */
.mission-visual {
  padding: clamp(20px, 4vw, 40px);
  background: var(--paper);
}

.mission-visual img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.before-after__item {
  min-height: 150px;
  padding: 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.before-after__item small {
  display: block;
  color: var(--blue-600);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.before-after__item strong {
  display: block;
  margin-top: 10px;
  color: var(--ink-900);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
}

.before-after__arrow {
  color: var(--gold-400);
  text-align: center;
}

.entity-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 30px;
  min-height: 300px;
  padding: clamp(26px, 4vw, 44px);
}

.entity-card__logo,
.entity-logo {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 18px;
  background: var(--mist);
  border-radius: var(--radius-md);
}

.entity-card__logo img,
.entity-logo img {
  max-height: 124px;
  object-fit: contain;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.service-card .card__body,
.service-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.service-card .text-link,
.service-card .button {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
}

.service-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px !important;
  height: 48px !important;
  padding: 9px;
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.technology-feature {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.technology-feature__media,
.technology-feature-image {
  min-height: 480px;
}

.technology-feature__media img,
.technology-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.technology-feature__body,
.technology-feature-content {
  display: grid;
  align-content: center;
  padding: clamp(38px, 6vw, 70px);
}

.technology-feature__body h2,
.technology-feature__body h3,
.technology-feature-content h2,
.technology-feature-content h3 {
  color: var(--paper);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.technology-feature__body p,
.technology-feature-content p {
  color: rgba(255, 255, 255, 0.65);
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
}

.trust-point {
  min-height: 250px;
  padding: 34px;
  background: var(--navy-900);
}

.trust-point img {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  object-fit: contain;
}

.trust-point h3 {
  color: var(--paper);
  font-size: 1.25rem;
}

.trust-point p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.stat-grid,
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
  background: url("../images/deco-d4-authority-badge.png") center / 300px auto no-repeat;
}

.stat-card,
.trust-stat {
  min-height: 164px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
}

.stat-card strong,
.trust-stat strong {
  display: block;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.stat-card span,
.trust-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

/* Lists, detail and editor content */
.news-list,
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list__item,
.news-item,
.article-list__item,
.news-list > li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.news-list time,
.news-date {
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.news-list a,
.news-title a,
.article-list a {
  color: var(--ink-900);
  font-weight: 650;
}

.news-list > li > span {
  color: var(--ink-900);
  font-weight: 650;
}

.news-list a:hover,
.news-title a:hover,
.article-list a:hover {
  color: var(--blue-700);
}

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

.entry-content {
  color: var(--ink-700);
}

.entry-content > * {
  margin-block: 0 1.5em;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin-top: 2.2em;
  padding-bottom: 0.45em;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--line);
}

.entry-content h3 {
  margin-top: 1.9em;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.entry-content a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content img {
  border-radius: var(--radius-md);
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 24px 30px;
  background: var(--mist);
  border-left: 3px solid var(--gold-400);
}

.entry-content table,
.data-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.data-table th,
.data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.entry-content th,
.data-table th {
  width: 30%;
  color: var(--ink-900);
  background: var(--mist);
  font-weight: 700;
}

.data-table[role="table"] {
  display: grid;
  border-top: 1px solid var(--line);
}

.data-table[role="table"] > [role="row"] {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.data-table[role="table"] [role="rowheader"],
.data-table[role="table"] [role="cell"] {
  padding: 15px 18px;
}

.data-table[role="table"] [role="rowheader"] {
  color: var(--ink-900);
  background: var(--mist);
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.detail-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.detail-navigation a {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 12px 18px;
  color: var(--blue-700);
  background: var(--mist);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pagination .current,
.nav-links .current {
  color: var(--paper);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  min-height: 210px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step__number,
.step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--paper);
  background: var(--blue-700);
  border-radius: 50%;
  font-family: var(--serif);
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  font-size: 0.84rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(42px, 7vw, 84px);
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.contact-phone {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  margin-top: 24px;
  color: var(--blue-700);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
}

.contact-preview,
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 5vw, 46px);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--wide,
.contact-preview__wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-900);
  font-size: 0.76rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea,
.contact-preview input:not([type="checkbox"]),
.contact-preview select,
.contact-preview textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid #cbd9e2;
  border-radius: var(--radius-sm);
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-preview label {
  display: grid;
  gap: 7px;
  color: var(--ink-900);
  font-size: 0.76rem;
  font-weight: 750;
}

.contact-preview > p {
  margin: 0;
}

.contact-preview input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.contact-preview .notice-panel {
  font-size: 0.8rem;
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
  color: var(--ink-500);
  background: #f8fafb;
  opacity: 1;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.form-note,
.form-status {
  color: var(--ink-500);
  font-size: 0.72rem;
  line-height: 1.65;
}

.form-status:empty {
  display: none;
}

/* CTA */
.site-cta,
.footer-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-800);
}

.site-cta.section,
.footer-cta.section {
  padding-block: 0;
}

.site-cta::before,
.footer-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.23;
  background:
    linear-gradient(90deg, rgba(3, 13, 25, 0.96), rgba(3, 13, 25, 0.58)),
    url("../images/provided-cosmetics-product.jpg") center / cover no-repeat;
}

.site-cta__inner,
.footer-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  padding-block: clamp(64px, 8vw, 96px);
}

.site-cta h2,
.footer-cta h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.site-cta p,
.footer-cta p {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-cta__actions,
.footer-cta__actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.site-cta__phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--gold-300);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.site-cta__actions small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.65fr minmax(240px, 0.9fr);
  gap: clamp(34px, 6vw, 80px);
  padding-block: 72px 56px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 20px;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand h2,
.footer-column h2 {
  color: var(--paper);
  font-family: var(--sans);
}

.footer-brand h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-brand p,
.footer-brand address,
.footer-column p {
  margin: 7px 0 0;
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav,
.footer-menu {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-menu a,
.footer-column > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.78rem;
}

.footer-nav a:hover,
.footer-menu a:hover,
.footer-column > a:hover {
  color: var(--paper);
}

.partner-logo,
.partner-mini {
  width: min(210px, 100%);
  padding: 12px;
  background: #000000;
  border-radius: var(--radius-sm);
}

.partner-logo img,
.partner-mini img {
  max-height: 90px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
}

.back-to-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* WordPress core */
.alignwide {
  width: min(100vw - 48px, var(--container));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption-text,
.wp-element-caption {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.sticky {
  border-color: var(--gold-400);
}

.bypostauthor {
  display: inherit;
}

/* Motion */
@keyframes float-decoration {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

.tb-reveal,
[data-reveal] {
  --tb-reveal-x: 0px;
  --tb-reveal-y: 20px;
  --tb-reveal-duration: 580ms;
  --tb-reveal-delay: 0ms;
  opacity: 1;
  transform: none;
}

.tb-reveal--from-left {
  --tb-reveal-x: -24px;
  --tb-reveal-y: 0px;
}

.tb-reveal--from-right {
  --tb-reveal-x: 24px;
  --tb-reveal-y: 0px;
}

.tb-reveal--fade {
  --tb-reveal-x: 0px;
  --tb-reveal-y: 0px;
}

.tb-reveal--up {
  --tb-reveal-x: 0px;
  --tb-reveal-y: 20px;
}

.tb-reveal--fast {
  --tb-reveal-duration: 450ms;
}

.tb-reveal--slow {
  --tb-reveal-duration: 720ms;
}

.tb-reveal--delay-1 {
  --tb-reveal-delay: 90ms;
}

.tb-reveal--delay-2 {
  --tb-reveal-delay: 180ms;
}

.tb-reveal.is-reveal-pending,
[data-reveal].is-reveal-pending {
  opacity: 0;
  transform: translate3d(var(--tb-reveal-x), var(--tb-reveal-y), 0);
  transition: none;
  will-change: opacity, transform;
}

.tb-reveal.is-revealed,
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--tb-reveal-duration) ease-out var(--tb-reveal-delay),
    transform var(--tb-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--tb-reveal-delay);
  will-change: auto;
}

.tb-reveal.is-reveal-pending:focus-within,
[data-reveal].is-reveal-pending:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

.tb-reveal--off,
.tb-reveal--off.is-reveal-pending {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 781px) {
  .tb-reveal,
  [data-reveal] {
    --tb-reveal-y: 12px;
    --tb-reveal-duration: 480ms;
  }

  .tb-reveal--from-left {
    --tb-reveal-x: -12px;
    --tb-reveal-y: 0px;
  }

  .tb-reveal--from-right {
    --tb-reveal-x: 12px;
    --tb-reveal-y: 0px;
  }

  .tb-reveal--delay-1,
  .tb-reveal--delay-2 {
    --tb-reveal-delay: 0ms;
  }

  .tb-reveal--mobile-off,
  .tb-reveal--mobile-off.is-reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .header-contact {
    display: none;
  }

  .card-grid {
    gap: 16px;
  }

  .entity-card {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 74px;
  }

  .js .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-navigation {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100svh - var(--header-height));
    align-content: start;
    gap: 18px;
    padding: 26px 24px 34px;
    overflow-y: auto;
    color: var(--paper);
    background: rgba(2, 11, 22, 0.99);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .header-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  html:not(.js) .site-navigation {
    position: static;
    flex: 1 0 100%;
    max-height: none;
    margin-top: 12px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list,
  .site-navigation .menu {
    display: grid;
    gap: 0;
  }

  .nav-list a,
  .site-navigation .menu a {
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
  }

  .nav-list a::after,
  .site-navigation .menu a::after {
    display: none;
  }

  .site-navigation .header-cta {
    margin-top: 4px;
    color: var(--navy-900);
    border-bottom: 0;
  }

  .section-intro,
  .content-grid,
  .technology-feature,
  .contact-layout,
  .site-cta__inner,
  .footer-cta__inner {
    grid-template-columns: 1fr;
  }

  .content-grid--reverse > :first-child {
    order: initial;
  }

  .section-intro {
    gap: 22px;
  }

  .section-intro .section-lead {
    margin: 0;
  }

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

  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .technology-feature__media,
  .technology-feature-image {
    min-height: 360px;
  }

  .technology-feature__media img,
  .technology-feature-image img {
    clip-path: none;
  }

  .trust-points,
  .trust-stats,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-points > :last-child:nth-child(odd),
  .trust-stats > :last-child:nth-child(odd),
  .stat-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .contact-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-space: 68px;
  }

  body {
    font-size: 16px;
  }

  .container,
  .container--reading,
  .entry-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    gap: 14px;
  }

  .site-brand img,
  .custom-logo {
    width: 46px;
    height: 46px;
  }

  .site-brand__text strong,
  .brand-copy strong,
  .site-title {
    font-size: 0.93rem;
  }

  .site-brand__text small,
  .brand-copy small,
  .site-description {
    display: none;
  }

  .home-hero,
  .hero,
  .home-hero__inner,
  .hero-inner {
    min-height: 760px;
  }

  .home-hero::before,
  .hero::before {
    background:
      linear-gradient(180deg, rgba(2, 11, 22, 0.98) 0%, rgba(2, 11, 22, 0.84) 58%, rgba(2, 11, 22, 0.48) 100%),
      url("../images/fv.jpg") 67% center / cover no-repeat;
  }

  .home-hero__inner,
  .hero-inner {
    width: calc(100% - 32px);
    align-items: start;
    padding-block: 64px 210px;
  }

  .home-hero h1,
  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.55rem);
  }

  .home-hero__note,
  .hero-note {
    right: 16px;
    bottom: 24px;
    left: 16px;
    width: auto;
  }

  .page-hero,
  .page-hero__inner {
    min-height: 360px;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
    padding-block: 58px;
  }

  .page-hero__visual,
  .page-hero__visual > img {
    min-height: 260px;
  }

  .page-hero--home,
  .page-hero--home .page-hero__inner {
    min-height: auto;
  }

  .page-hero--home .page-hero__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 58px 70px;
  }

  .page-hero--home .page-hero__title {
    font-size: clamp(2.4rem, 10vw, 3.55rem);
  }

  .page-hero--home .page-hero__visual,
  .page-hero--home .page-hero__visual > img {
    min-height: 390px;
  }

  .page-hero h1,
  .page-hero__title {
    font-size: clamp(2.3rem, 10vw, 3.35rem);
  }

  .section-heading {
    font-size: clamp(1.85rem, 8.5vw, 2.8rem);
  }

  .card-grid,
  .card-grid--two,
  .trust-points,
  .trust-stats,
  .stat-grid,
  .steps,
  .contact-preview,
  .contact-form,
  .detail-navigation {
    grid-template-columns: 1fr;
  }

  .card-grid > :last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .entity-card {
    grid-template-columns: 1fr;
  }

  .entity-card__logo,
  .entity-logo {
    min-height: 120px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after__arrow {
    transform: rotate(90deg);
  }

  .technology-feature__media,
  .technology-feature-image {
    min-height: 280px;
  }

  .trust-points > :last-child:nth-child(odd),
  .trust-stats > :last-child:nth-child(odd),
  .stat-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .news-list__item,
  .news-item,
  .article-list__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .entry-content table,
  .data-table,
  .entry-content tbody,
  .data-table tbody,
  .entry-content tr,
  .data-table tr,
  .entry-content th,
  .data-table th,
  .entry-content td,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table[role="table"] > [role="row"] {
    grid-template-columns: 1fr;
  }

  .entry-content th,
  .data-table th {
    border-bottom: 0;
  }

  .form-field--wide,
  .contact-preview__wide,
  .form-actions {
    grid-column: auto;
  }

  .form-actions {
    display: grid;
  }

  .form-actions .button {
    width: 100%;
  }

  .site-cta__inner,
  .footer-cta__inner {
    gap: 28px;
  }

  .site-cta__inner .button,
  .footer-cta__inner .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
    grid-template-columns: 64px 1fr;
  }

  .footer-brand img {
    width: 64px;
    height: 64px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-brand__text strong,
  .brand-copy strong,
  .site-title {
    font-size: 0.84rem;
  }

  .home-hero__fields,
  .hero-fields {
    display: grid;
  }

  .home-hero__fields a,
  .hero-fields a,
  .home-hero .button,
  .hero .button {
    width: 100%;
  }

  .card__body,
  .card-body {
    padding: 24px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }
}

/* Gutenberg technical content and corrected comparison visual (v1.5.0) */
.tb-emulsion-comparison {
  margin-top: clamp(28px, 4vw, 52px);
}

.tb-emulsion-comparison__labels {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 2px;
}

.tb-emulsion-comparison__labels > .wp-block-column {
  padding: clamp(14px, 2vw, 22px);
  color: var(--paper);
  text-align: center;
  background: var(--navy-800);
}

.tb-emulsion-comparison__labels h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(0.88rem, 1.7vw, 1.2rem);
  line-height: 1.35;
}

.tb-emulsion-comparison__crop {
  aspect-ratio: 4 / 1;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tb-emulsion-comparison__crop img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transform: translateY(-34%);
}

.tb-pharma-technical .tb-card {
  height: 100%;
}

.tb-pharma-technical .tb-image-frame img {
  max-height: none;
  object-fit: contain;
}

.tb-pharma-technical__figure {
  margin-top: clamp(28px, 4vw, 48px);
}

.tb-pharma-technical__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-pharma-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.tb-pharma-table th,
.tb-pharma-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  vertical-align: middle;
}

.tb-pharma-table th {
  color: var(--paper);
  font-weight: 700;
  background: var(--blue-700);
}

.tb-pharma-table tbody tr:nth-child(even) td {
  background: var(--mist);
}

@media (max-width: 781px) {
  .tb-emulsion-comparison__labels > .wp-block-column {
    padding: 10px 8px;
  }

  .tb-emulsion-comparison__crop {
    aspect-ratio: 3.25 / 1;
  }

  .tb-emulsion-comparison__crop img {
    width: 122%;
    max-width: none;
    transform: translate(-9%, -28%);
  }

  .tb-pharma-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tb-pharma-table table {
    min-width: 690px;
  }
}

/* Round-two Gutenberg layout refinements (v1.7.0) */
.tb-query-grid {
  align-items: stretch !important;
  grid-auto-rows: 1fr;
}

.tb-query-grid > li {
  align-self: stretch;
  height: auto;
}

.tb-query-grid > li > .tb-query-card,
.tb-query-grid > li > .wp-block-group,
.tb-query-grid > li > .wp-block-group > .wp-block-group__inner-container {
  min-height: 0;
  flex: 1 1 auto;
}

.tb-query-card .wp-block-post-title {
  min-block-size: 2.6em;
}

.tb-figure-columns > .wp-block-column {
  align-self: stretch;
  height: auto;
}

.tb-figure-card {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
}

.tb-figure-card > .wp-block-group__inner-container {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
}

.tb-figure-card .tb-source-figure--crop-references,
.tb-source-figure--crop-references {
  position: relative;
  width: 100%;
  aspect-ratio: 1222 / 495;
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-figure-card .tb-source-figure--crop-references img,
.tb-source-figure--crop-references img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tb-platform-grid--natural {
  align-items: start !important;
}

.tb-platform-grid--natural > .wp-block-column {
  display: block;
  align-self: start;
  height: auto;
}

.tb-platform-grid--natural .tb-figure-card,
.tb-platform-grid--natural .tb-figure-card > .wp-block-group__inner-container {
  display: block;
  height: auto;
  min-height: 0;
}

.tb-platform-grid--natural .tb-source-figure + .tb-source-figure {
  margin-top: clamp(16px, 2.2vw, 24px);
}

.tb-platform-grid--equal {
  align-items: stretch !important;
}

.tb-platform-grid--equal > .wp-block-column {
  display: flex;
  align-self: stretch;
  height: auto;
}

.tb-platform-grid--equal .tb-figure-card,
.tb-platform-grid--equal .tb-figure-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  flex-direction: column;
}

.tb-platform-grid--equal .tb-figure-card > h3,
.tb-platform-grid--equal .tb-figure-card > .wp-block-group__inner-container > h3 {
  min-block-size: 2.9em;
}

.tb-platform-grid--equal .tb-figure-card__lead {
  min-block-size: 5.4em;
  margin-bottom: 18px;
}

.tb-platform-grid--equal .tb-source-figure {
  display: grid;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  place-items: center;
  margin: 0 0 20px;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-platform-grid--equal .tb-source-figure img {
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.4vw, 16px);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tb-platform-grid--equal .wp-block-list {
  margin-top: auto;
}

.tb-hero .tb-hero__media--device {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: clip;
}

.tb-hero .tb-hero__media--device .wp-block-image,
.tb-consultation-hero .tb-hero__media:has(img[src*="horizon-mini"]) .wp-block-image {
  display: grid;
  width: 100%;
  place-items: center;
}

.tb-hero .tb-hero__media--device img,
.tb-consultation-hero .tb-hero__media img[src*="horizon-mini"] {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: clamp(260px, 28vw, 360px);
  object-fit: contain;
  object-position: center;
}

.tb-cosmetic-document-section {
  margin-top: clamp(34px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.tb-cosmetic-document-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tb-cosmetic-document-section__heading,
.tb-document-section__heading {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.35;
}

.tb-cosmetic-document-section__lead,
.tb-document-section__lead {
  max-width: 76ch;
  margin-bottom: 22px;
  color: var(--ink-700);
}

.tb-cosmetic-document-section__note,
.tb-document-section__note {
  max-width: 86ch;
  margin: 0 0 24px;
  padding: 16px 20px;
  color: var(--ink-700);
  background: var(--mist);
  border-left: 3px solid var(--gold-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  line-height: 1.75;
}

.tb-contact-layout--single,
.tb-contact-form-shell,
.tb-contact-form--single {
  width: min(100%, 880px);
  margin-inline: auto;
}

.tb-contact-layout--single > .wp-block-column,
.tb-contact-layout--single > .wp-block-group {
  flex-basis: 100% !important;
  width: 100%;
  max-width: none;
}

@media (max-width: 781px) {
  .tb-query-grid {
    grid-auto-rows: auto;
  }

  .tb-query-card .wp-block-post-title,
  .tb-platform-grid--equal .tb-figure-card > h3,
  .tb-platform-grid--equal .tb-figure-card > .wp-block-group__inner-container > h3,
  .tb-platform-grid--equal .tb-figure-card__lead {
    min-block-size: 0;
  }

  .tb-platform-grid--equal > .wp-block-column,
  .tb-platform-grid--natural > .wp-block-column {
    display: block;
  }

  .tb-platform-grid--equal .tb-source-figure {
    aspect-ratio: auto;
    min-height: min(76vw, 360px);
  }

  .tb-hero .tb-hero__media--device img {
    max-height: 300px;
  }

  .tb-cosmetic-document-section {
    margin-top: 34px;
    padding-top: 28px;
  }

  .tb-cosmetic-document-section__note,
  .tb-document-section__note {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .tb-reveal,
  .tb-reveal.is-reveal-pending,
  [data-reveal],
  [data-reveal].is-reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .site-cta,
  .footer-cta,
  .button,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #142233;
    background: #fff;
  }
}

/* Gutenberg-managed page compositions */
.site-main--blocks {
  overflow: clip;
}

.tb-block-page,
.tb-block-page > * {
  margin-block: 0;
}

.tb-block-page .wp-block-group,
.tb-block-page .wp-block-columns,
.tb-block-page .wp-block-image,
.tb-block-page .wp-block-buttons {
  margin-block-start: 0;
}

.tb-section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-space);
}

.tb-section--compact {
  padding-block: clamp(52px, 6vw, 80px);
}

.tb-section--mist {
  background-color: var(--mist);
  background-image: url("../images/deco-d2-glass-membrane.png");
  background-position: calc(100% + 280px) 50%;
  background-repeat: no-repeat;
  background-size: 560px auto;
}

.tb-section--navy,
.tb-hero {
  color: rgba(255, 255, 255, 0.74);
  background-color: var(--navy-900);
  background-image: url("../images/deco-d7-porous-membrane.png");
  background-position: calc(100% + 180px) -120px;
  background-repeat: no-repeat;
  background-size: 620px auto;
}

.tb-section--navy :where(h1, h2, h3, h4),
.tb-hero :where(h1, h2, h3, h4) {
  color: var(--paper);
}

.tb-section--navy p,
.tb-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.tb-hero {
  display: grid;
  min-height: min(740px, calc(100svh - var(--header-height)));
  align-items: center;
  overflow: hidden;
}

.tb-hero--inner {
  min-height: 440px;
}

.tb-hero .wp-block-columns,
.tb-section .wp-block-columns {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
}

.tb-section > .wp-block-group__inner-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.tb-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.tb-hero--inner h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.35rem);
}

.tb-hero .wp-block-image img {
  width: 100%;
  min-height: 420px;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tb-hero--inner .wp-block-image img {
  min-height: 300px;
  max-height: 360px;
}

.tb-eyebrow {
  margin-bottom: 18px;
  color: var(--gold-300) !important;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tb-lead {
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.85;
}

.tb-heading {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.2;
}

.tb-copy {
  max-width: 70ch;
}

.tb-image-frame img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tb-card {
  height: 100%;
  padding: clamp(24px, 3vw, 34px);
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-card :where(h2, h3) {
  margin-bottom: 14px;
}

.tb-card .wp-block-image {
  margin: calc(clamp(24px, 3vw, 34px) * -1);
  margin-bottom: 24px;
}

.tb-card .wp-block-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tb-stack {
  display: grid;
  gap: 22px;
}

.tb-number {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.tb-notice {
  padding: 22px 26px;
  color: var(--ink-700);
  background: var(--mist);
  border-left: 3px solid var(--gold-400);
}

.tb-section--navy .tb-notice,
.tb-hero .tb-notice {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold-300);
}

.tb-data-table td:first-child {
  width: 28%;
  color: var(--ink-900);
  background: var(--mist);
  font-weight: 700;
}

.tb-block-page .wp-block-button__link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  color: var(--paper);
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tb-block-page .wp-block-button__link:hover {
  color: var(--paper);
  background: var(--navy-800);
  border-color: var(--navy-800);
  transform: scale(1.02);
}

.tb-block-page .is-style-outline .wp-block-button__link {
  color: var(--blue-700);
  background: transparent;
  border-color: rgba(23, 111, 168, 0.35);
}

.tb-section--navy .wp-block-button__link,
.tb-hero .wp-block-button__link {
  color: var(--navy-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.tb-section--navy .is-style-outline .wp-block-button__link,
.tb-hero .is-style-outline .wp-block-button__link {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
}

.tb-block-page .wp-block-list {
  display: grid;
  gap: 10px;
  padding-left: 1.25em;
}

.tb-block-page .wp-block-table {
  overflow-x: auto;
}

.tb-block-page .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.tb-block-page .wp-block-table td,
.tb-block-page .wp-block-table th {
  padding: 18px 20px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

@media (max-width: 781px) {
  .tb-hero,
  .tb-hero--inner {
    min-height: auto;
    padding-block: 68px;
  }

  .tb-hero .wp-block-columns,
  .tb-section .wp-block-columns,
  .tb-section > .wp-block-group__inner-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .tb-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .tb-hero .wp-block-image img,
  .tb-hero--inner .wp-block-image img {
    min-height: 260px;
    max-height: 420px;
  }

  .tb-data-table td:first-child {
    width: 38%;
  }
}

/* Homepage composition and editorial cards (v1.2.0) */
.home .tb-hero--home.wp-block-cover {
  display: flex;
  min-height: min(760px, calc(100svh - var(--header-height)));
  align-items: center;
  padding: 0;
  overflow: hidden;
  background-color: var(--navy-900);
  background-image: none;
}

.home .tb-hero--home .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home .tb-hero--home .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(2, 11, 22, 0.74) 0%,
    rgba(2, 11, 22, 0.48) 36%,
    rgba(2, 11, 22, 0.08) 68%,
    rgba(2, 11, 22, 0) 100%
  ) !important;
}

.home .tb-hero--home > .wp-block-cover__inner-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.home .tb-hero--home .tb-hero__content {
  width: 100%;
  max-width: min(780px, 64vw);
  margin-inline: 0 auto !important;
  padding-block: clamp(64px, 9vw, 112px);
}

.home .tb-hero--home h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
  word-break: keep-all;
}

.home .tb-hero--home .tb-lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.84);
}

.home .tb-mission .tb-mission__copy {
  max-width: 880px;
}

.home .tb-mission .tb-heading {
  max-width: 820px;
}

.home .tb-comparison-figure {
  width: 100%;
  margin-top: clamp(38px, 5vw, 64px) !important;
}

.home .tb-comparison-figure img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: var(--paper);
}

.tb-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch !important;
  gap: clamp(18px, 2.4vw, 28px) !important;
}

.tb-card-grid > .wp-block-column {
  display: flex;
  min-width: 0;
  height: 100%;
}

.tb-card-grid .tb-card {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}

.tb-card-grid .tb-card > .wp-block-buttons {
  margin-top: auto;
  padding-top: 22px;
}

.tb-card .tb-card__media--contain img {
  object-fit: contain;
  padding: 18px;
  background: var(--paper);
}

.tb-card-section--services .tb-card {
  border-top: 3px solid var(--gold-400);
}

.tb-card-section--consultations .tb-card,
.tb-query-section--consultations .tb-query-card {
  background: var(--mist);
  border-top: 3px solid var(--blue-600);
  box-shadow: none;
}

.tb-query-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  padding: 0;
  list-style: none;
}

.tb-query-grid > li {
  display: flex;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.tb-query-card {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-query-card .wp-block-post-title {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.tb-query-card .wp-block-post-title a {
  color: var(--ink-900);
  text-decoration: none;
}

.tb-query-card .wp-block-post-excerpt {
  margin-bottom: 0;
}

.tb-query-card .wp-block-post-excerpt__more-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue-700);
  font-weight: 750;
}

.tb-news-list {
  padding: 0;
  list-style: none;
}

.tb-news-list > li {
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.tb-news-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.tb-news-list .wp-block-post-date {
  color: var(--ink-500);
  font-size: 0.86rem;
}

.tb-news-list .wp-block-post-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.tb-entry-hero {
  min-height: 380px;
}

.tb-entry-hero > .container {
  width: min(calc(100% - 48px), var(--container));
}

.tb-entry-date {
  color: rgba(255, 255, 255, 0.72);
}

.tb-entry-content {
  max-width: 860px;
}

.tb-entry-content > * + * {
  margin-top: 1.5em;
}

@media (max-width: 781px) {
  .home .tb-hero--home.wp-block-cover {
    min-height: calc(100svh - var(--header-height));
    padding: 0;
  }

  .home .tb-hero--home .wp-block-cover__image-background {
    object-position: 62% center;
  }

  .home .tb-hero--home .wp-block-cover__background {
    background: linear-gradient(
      90deg,
      rgba(2, 11, 22, 0.9) 0%,
      rgba(2, 11, 22, 0.68) 56%,
      rgba(2, 11, 22, 0.22) 100%
    ) !important;
  }

  .home .tb-hero--home > .wp-block-cover__inner-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .home .tb-hero--home .tb-hero__content {
    max-width: 100%;
    padding-block: 56px;
  }

  .home .tb-hero--home h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.12;
    word-break: normal;
  }

  .tb-card-grid,
  .tb-query-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-news-list > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .tb-entry-hero > .container {
    width: min(calc(100% - 32px), var(--container));
  }
}

/* Keep wide diagrams fully legible inside inner-page hero frames. */
.tb-hero--inner .wp-block-image img[src*="provided-dds-comparison.png"] {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1.2vw, 14px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Gutenberg video sections and cards (v1.3.0) */
.tb-video-section,
.tb-video-teaser,
.tb-video-card[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.tb-video-teaser {
  overflow: hidden;
}

.tb-section .tb-video-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch !important;
  gap: clamp(20px, 3vw, 32px) !important;
}

.tb-video-grid > .wp-block-column {
  display: flex;
  min-width: 0;
}

.tb-video-card {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-video-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
}

.tb-video-teaser .tb-video-card {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.tb-video-card__media {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
}

.tb-video-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-video-card__media :where(img, video),
figure.tb-video-card__media > :where(img, video),
figure.tb-video-card__media > a > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tb-video-card__media video {
  object-fit: contain;
  background: var(--navy-950);
}

.tb-video-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  color: var(--ink-700);
}

.tb-video-card__body > .wp-block-group__inner-container {
  display: flex;
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
}

.tb-video-card__body :where(h2, h3, h4),
.tb-section--navy .tb-video-card :where(h2, h3, h4),
.tb-video-teaser .tb-video-card :where(h2, h3, h4) {
  margin-bottom: 12px;
  color: var(--ink-900);
}

.tb-video-card__body p,
.tb-section--navy .tb-video-card p,
.tb-video-teaser .tb-video-card p {
  color: var(--ink-700);
}

.tb-video-meta,
.tb-section--navy .tb-video-card .tb-video-meta,
.tb-video-teaser .tb-video-card .tb-video-meta {
  margin-bottom: 12px;
  color: var(--ink-500);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.tb-video-card__body > .wp-block-buttons,
.tb-video-card__body > .wp-block-group__inner-container > .wp-block-buttons {
  margin-top: auto;
  padding-top: 22px;
}

/* Discourage saving media through browser context menus and drag gestures. */
:where(img, video) {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 781px) {
  .tb-section .tb-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-video-grid > .wp-block-column {
    width: 100%;
  }

  .tb-video-card__body {
    padding: 24px;
  }
}

/* Cosmetic presentation, document pager, partner logo, and Contact Form 7 (v1.4.3) */
.tb-document-shell {
  width: min(calc(100% - 48px), var(--container));
}

.tb-document-note {
  max-width: 760px;
  margin-bottom: clamp(24px, 3vw, 36px);
  color: var(--ink-700);
}

.tb-document-scroll {
  max-height: min(78svh, 840px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(10px, 2vw, 20px);
  background: var(--navy-950);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  scrollbar-color: var(--gold-400) var(--navy-800);
  scrollbar-gutter: stable;
}

.tb-document-scroll :where(.wp-block-group__inner-container) {
  margin: 0;
}

.tb-document-scroll .wp-block-image {
  width: 100%;
  margin: 0;
}

.tb-document-scroll .wp-block-image + .wp-block-image {
  margin-top: clamp(12px, 2vw, 20px);
}

.tb-document-scroll .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.tb-document-scroll.is-paged {
  max-height: none;
  overflow: hidden;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.tb-document-scroll.is-paged .tb-document-pager__page + .tb-document-pager__page {
  margin-top: 0;
}

.tb-document-pager__page[hidden] {
  display: none !important;
}

.tb-document-scroll.is-paged .tb-document-pager__page img {
  aspect-ratio: 1601 / 900;
  object-fit: contain;
  background: var(--paper);
}

.tb-document-scroll.is-paged:not(.is-last-page) .tb-document-pager__page:not([hidden]) {
  cursor: pointer;
}

.tb-document-pager__hint {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  text-align: center;
}

.tb-document-pager__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.tb-document-pager__button {
  min-height: 48px;
  padding: 10px 22px;
  color: var(--paper);
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 700;
  touch-action: manipulation;
}

.tb-document-pager__button--previous {
  justify-self: start;
}

.tb-document-pager__button--next {
  justify-self: end;
}

.tb-document-pager__button:not([aria-disabled="true"]):hover {
  color: var(--navy-950);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.tb-document-pager__button:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

.tb-document-pager__button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.tb-document-pager__status {
  margin: 0;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-card .wp-block-image img[src*="tachibana-keiei-logo"],
.tb-card .tb-partner-logo img {
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2vw, 22px);
  object-fit: contain;
  object-position: center;
  background: #000000;
}

.tb-block-page .wp-block-image img[src*="tachibana-keiei-logo"] {
  object-fit: contain;
  object-position: center;
  background: #000000;
}

.tb-contact-form,
.wpcf7 {
  color: var(--ink-700);
}

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

.tb-contact-field {
  margin: 0;
}

.tb-contact-field--wide,
.tb-contact-consent,
.tb-contact-actions {
  grid-column: 1 / -1;
}

.tb-contact-field > label,
.tb-contact-field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-900);
  font-size: 0.94rem;
  font-weight: 700;
}

.tb-required,
.tb-optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.5;
  vertical-align: 0.08em;
}

.tb-required {
  color: var(--paper);
  background: var(--blue-700);
}

.tb-optional {
  color: var(--ink-700);
  background: var(--mist-strong);
}

.wpcf7 :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  line-height: 1.5;
}

.wpcf7 textarea {
  min-height: 190px;
  resize: vertical;
}

.wpcf7 input.wpcf7-quiz {
  max-width: 220px;
}

.wpcf7 :where(input, select, textarea):focus-visible {
  border-color: var(--blue-600);
  outline: 3px solid color-mix(in srgb, var(--blue-600) 28%, transparent);
  outline-offset: 2px;
}

.tb-contact-consent {
  padding: 20px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tb-contact-consent .wpcf7-list-item {
  margin: 0;
}

.tb-contact-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tb-contact-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 0.24em;
  accent-color: var(--blue-700);
}

.tb-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.tb-contact-actions .wpcf7-submit {
  cursor: pointer;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #a62d2d;
  font-size: 0.82rem;
  font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  color: var(--ink-900);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--blue-700);
}

.wpcf7-spinner {
  margin: 0;
}

@media (max-width: 781px) {
  .tb-document-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .tb-document-scroll {
    max-height: 70svh;
    padding: 8px;
    border-radius: var(--radius-sm);
  }

  .tb-document-scroll .wp-block-image + .wp-block-image {
    margin-top: 8px;
  }

  .tb-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tb-contact-field--wide,
  .tb-contact-consent,
  .tb-contact-actions {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .tb-document-pager__controls {
    gap: 8px;
  }

  .tb-document-pager__button {
    min-width: 0;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .tb-document-pager__status {
    font-size: 0.76rem;
  }
}

/* Client revision details and editable pharmaceutical comparisons (v1.5.1) */
.tb-cosmetic-application .tb-emulsion-comparison {
  max-width: 1180px;
  margin-inline: auto;
}

.tb-pharma-overview__copy {
  max-width: 980px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 2;
}

.tb-particle-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3vw, 38px);
}

.tb-particle-chip {
  display: grid;
  min-height: 104px;
  place-items: center;
  padding: 18px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.tb-particle-chip h3 {
  margin: 0;
  color: var(--navy-800);
  font-size: clamp(0.9rem, 1.25vw, 1.06rem);
  line-height: 1.45;
}

.tb-method-grid,
.tb-application-grid,
.tb-process-grid {
  display: grid !important;
  gap: clamp(18px, 2.4vw, 28px) !important;
}

.tb-method-grid,
.tb-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-application-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tb-method-card,
.tb-application-card,
.tb-process-card {
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-method-card {
  padding-bottom: 16px;
}

.tb-method-card > h3,
.tb-application-card > h3 {
  margin: 0;
  padding: 16px 18px;
  color: var(--paper);
  text-align: center;
  background: var(--navy-800);
}

.tb-method-card .wp-block-image {
  margin: 0;
  padding: 18px;
  background: var(--paper);
}

.tb-method-card .wp-block-image img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: contain;
}

.tb-method-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 18px;
  padding: 9px 0;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.tb-method-score:first-of-type {
  border-top: 0;
}

.tb-rating {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
}

.tb-rating--positive { background: #45b749; }
.tb-rating--neutral { background: #e4a824; }
.tb-rating--negative { background: #d83b3b; }

.tb-application-card {
  padding-bottom: 18px;
}

.tb-application-card .wp-block-list {
  margin: 18px 20px 0;
  padding-left: 1.2em;
}

.tb-mode-diagrams {
  margin-top: clamp(30px, 4vw, 50px) !important;
}

.tb-mode-diagrams img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tb-process-section {
  background-color: var(--mist);
  background-image: linear-gradient(90deg, var(--mist) 0%, rgba(239, 246, 250, 0.93) 68%, rgba(239, 246, 250, 0.48) 100%), url("../images/deco-d2-glass-membrane.png");
  background-repeat: no-repeat;
  background-position: center, right -130px center;
  background-size: auto, min(48vw, 650px);
}

.tb-process-card {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
}

.tb-process-number {
  margin-bottom: 14px;
  color: var(--blue-700);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
}

.tb-scale-columns {
  align-items: stretch !important;
}

.tb-scale-columns > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tb-cosmetics-shift__intro,
.tb-cosmetics-shift__outro {
  color: var(--blue-700);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .tb-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .tb-particle-chip-grid,
  .tb-method-grid,
  .tb-application-grid,
  .tb-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-particle-chip {
    min-height: 76px;
    border-radius: var(--radius-md);
  }

  .tb-process-section {
    background-position: center, right -190px bottom;
    background-size: auto, 520px;
  }
}

/* Gutenberg consultation themes, evidence figures, and editorial cards (v1.6.0) */
.tb-example-section__intro {
  max-width: 90ch;
}

.tb-hero .tb-hero__media--contain img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: clamp(10px, 1.5vw, 18px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-card__support {
  margin: -2px 0 16px;
  color: var(--blue-700) !important;
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  font-weight: 750;
  line-height: 1.65;
}

.tb-card__title--fixed-break {
  word-break: keep-all;
  overflow-wrap: normal;
}

.tb-query-card .wp-block-post-excerpt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.tb-query-card .wp-block-post-excerpt__more-text {
  margin: auto 0 0;
  padding-top: 20px;
}

.tb-query-card .wp-block-post-excerpt__more-link {
  margin-top: 0;
}

.tb-figure-columns {
  align-items: stretch !important;
  gap: clamp(20px, 3vw, 38px) !important;
}

.tb-figure-columns > .wp-block-column {
  display: flex;
  min-width: 0;
}

.tb-figure-card {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-figure-card > .wp-block-group__inner-container {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.tb-figure-card .wp-block-image,
.tb-source-figure,
.tb-source-figure .wp-block-image {
  margin: 0;
}

.tb-figure-card .wp-block-image {
  margin-bottom: 20px;
}

.tb-figure-card img,
.tb-source-figure img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-source-figure figcaption,
.tb-source-figure .wp-element-caption,
.tb-figure-card figcaption,
.tb-figure-card .wp-element-caption {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 0.78rem;
  line-height: 1.65;
  text-align: left;
}

.tb-source-figure--scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.tb-reference-list,
.tb-reference-list li,
.tb-reference-list a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tb-reference-list a {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 960px) and (min-width: 782px) {
  .tb-card-grid,
  .tb-query-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-card-grid > :last-child:nth-child(odd),
  .tb-query-grid > :last-child:nth-child(odd) {
    width: calc(50% - 12px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 781px) {
  .tb-card__title--fixed-break {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tb-figure-columns > .wp-block-column {
    display: block;
  }

  .tb-source-figure--scroll img {
    width: auto;
    min-width: 720px;
    max-width: none;
  }
}

/* v1.7.0 final cascade guards for legacy v1.6 selectors above. */
.tb-query-grid {
  align-items: stretch !important;
  grid-auto-rows: 1fr;
}

.tb-query-grid > li {
  align-self: stretch;
  height: auto;
}

.tb-query-grid > li > .tb-query-card,
.tb-query-grid > li > .wp-block-group,
.tb-query-grid > li > .wp-block-group > .wp-block-group__inner-container {
  min-height: 0;
  flex: 1 1 auto;
}

.tb-query-card .wp-block-post-title {
  min-block-size: 2.6em;
}

.tb-figure-columns > .wp-block-column {
  align-self: stretch;
  height: auto;
}

.tb-figure-card,
.tb-figure-card > .wp-block-group__inner-container {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
}

.tb-platform-grid--natural {
  align-items: start !important;
}

.tb-platform-grid--natural > .wp-block-column {
  display: block;
  align-self: start;
  height: auto;
}

.tb-platform-grid--natural .tb-figure-card,
.tb-platform-grid--natural .tb-figure-card > .wp-block-group__inner-container {
  display: block;
  min-height: 0;
  height: auto;
}

.tb-platform-grid--equal {
  align-items: stretch !important;
}

.tb-platform-grid--equal > .wp-block-column {
  display: flex;
  align-self: stretch;
  height: auto;
}

.tb-platform-grid--equal .tb-figure-card,
.tb-platform-grid--equal .tb-figure-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  flex-direction: column;
}

.tb-platform-grid--equal .tb-figure-card__lead {
  min-block-size: 5.4em;
}

.tb-platform-grid--equal .tb-source-figure {
  display: grid;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  place-items: center;
  overflow: hidden;
}

.tb-platform-grid--equal .tb-source-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-figure-card .tb-source-figure--crop-references,
.tb-source-figure--crop-references {
  position: relative;
  width: 100%;
  aspect-ratio: 1222 / 495;
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tb-figure-card .tb-source-figure--crop-references img,
.tb-source-figure--crop-references img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tb-hero .tb-hero__media--device img {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: clamp(260px, 28vw, 360px);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 781px) {
  .tb-query-grid {
    grid-auto-rows: auto;
  }

  .tb-query-card .wp-block-post-title {
    min-block-size: 0;
  }

  .tb-platform-grid--equal .tb-figure-card__lead {
    min-block-size: 0;
  }

  .tb-platform-grid--equal > .wp-block-column,
  .tb-platform-grid--natural > .wp-block-column {
    display: block;
  }

  .tb-platform-grid--equal .tb-source-figure {
    aspect-ratio: auto;
    min-height: min(76vw, 360px);
  }

  .tb-hero .tb-hero__media--device img {
    max-height: 300px;
  }
}

/* Compact device artwork in the process-transition hero. */
.tb-hero .tb-hero__media--device .wp-block-image,
.tb-consultation-hero .tb-hero__media:has(img[src*="horizon-mini"]) .wp-block-image {
  width: min(76%, 380px) !important;
  margin-inline: auto;
}

.tb-hero .tb-hero__media--device img,
.tb-consultation-hero .tb-hero__media img[src*="horizon-mini"] {
  max-width: 100%;
  max-height: clamp(220px, 22vw, 290px);
}

@media (max-width: 781px) {
  .tb-hero .tb-hero__media--device .wp-block-image,
  .tb-consultation-hero .tb-hero__media:has(img[src*="horizon-mini"]) .wp-block-image {
    width: min(82%, 320px) !important;
  }

  .tb-hero .tb-hero__media--device img,
  .tb-consultation-hero .tb-hero__media img[src*="horizon-mini"] {
    max-height: 260px;
  }
}

.tb-card-media-copy{display:grid;aspect-ratio:16/10;margin:calc(clamp(24px,3vw,34px)*-1);margin-bottom:24px;overflow:hidden;background:var(--navy-950);border-radius:var(--radius-md) var(--radius-md) 0 0;}
.tb-card-media-copy>.wp-block-group__inner-container{display:grid;height:100%;}
.tb-card .tb-card-media-copy .wp-block-image{width:100%;height:100%;margin:0;}
.tb-card .tb-card-media-copy .wp-block-image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;}
.tb-card figure.tb-card-media-copy img{grid-area:1/1;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;}
.tb-card-media-copy__text,.tb-card-media-copy>.wp-element-caption{z-index:1;grid-area:1/1;align-self:center;justify-self:start;width:min(50%,12.5rem);margin:0 0 0 clamp(16px,2.4vw,28px);color:var(--paper)!important;font-family:var(--serif);font-size:clamp(.92rem,1.3vw,1.15rem);font-weight:500;letter-spacing:.02em;line-height:1.5;text-wrap:balance;text-shadow:0 2px 18px rgba(0,0,0,.72);}
@media(max-width:781px){.tb-card-media-copy__text,.tb-card-media-copy>.wp-element-caption{width:50%;margin-left:18px;font-size:clamp(.94rem,3.8vw,1.12rem);line-height:1.45;}}
