/**
 * Martin Hoffer profile page.
 * All selectors are scoped so this review page cannot affect approved pages.
 */

.ema-martin-profile {
  --ema-martin-copy: 720px;
  --ema-martin-gap: clamp(34px, 5.5vw, 88px);
  --ema-martin-space: clamp(62px, 8vw, 116px);
  padding-top: 0;
  overflow: clip;
}

.ema-martin-profile :where(section, article, div, figure) {
  min-width: 0;
}

.ema-martin-profile :where(figure) {
  margin: 0;
}

.ema-martin-profile :where(p) {
  max-width: var(--ema-martin-copy);
  color: var(--ema-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  line-height: 1.56;
}

.ema-martin-profile :where(p + p) {
  margin-top: 1.05em;
}

.ema-martin-profile :where(h2) {
  margin-bottom: clamp(20px, 2.6vw, 34px);
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.98;
}

.ema-martin-profile .ema-eyebrow {
  margin-bottom: 16px;
}

.ema-martin-profile .ema-breadcrumbs {
  padding-top: 12px;
}

.ema-martin-profile :where(
  .ema-martin-profile__hero-media,
  .ema-martin-profile__intro-media,
  .ema-martin-profile__history-media
) {
  position: relative;
  overflow: hidden;
  background: #d9e9e2;
}

.ema-martin-profile :where(
  .ema-martin-profile__hero-media,
  .ema-martin-profile__intro-media,
  .ema-martin-profile__history-media
) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.ema-martin-profile .ema-martin-profile__hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: var(--ema-martin-gap);
  padding-block: clamp(28px, 4.5vw, 66px) clamp(58px, 7vw, 96px);
  border-bottom: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: clamp(12px, 2.5vw, 36px);
}

.ema-martin-profile .ema-martin-profile__hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(66px, 8vw, 126px);
  line-height: 0.84;
}

.ema-martin-profile .ema-martin-profile__hero-lead {
  max-width: 600px;
  margin-bottom: 12px;
  color: #4e4148;
  font-size: clamp(21px, 1.85vw, 29px);
  line-height: 1.35;
}

.ema-martin-profile .ema-martin-profile__hero-copy > p:not(.ema-eyebrow, .ema-martin-profile__hero-lead) {
  max-width: 590px;
  margin-bottom: 28px;
}

.ema-martin-profile .ema-martin-profile__hero-copy .ema-button {
  width: min(100%, 320px);
}

.ema-martin-profile .ema-martin-profile__hero-media {
  min-height: clamp(470px, 48vw, 680px);
}

.ema-martin-profile .ema-martin-profile__hero-media img {
  object-position: center 44%;
}

/* Reusable editorial splits */
.ema-martin-profile .ema-martin-profile__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--ema-martin-gap);
  padding-block: var(--ema-martin-space);
  border-bottom: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__copy > p:last-child {
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__intro-media {
  min-height: clamp(330px, 35vw, 520px);
}

.ema-martin-profile .ema-martin-profile__intro {
  padding-top: clamp(30px, 4.5vw, 66px);
}

.ema-martin-profile .ema-martin-profile__intro > .ema-martin-profile__copy {
  padding-right: clamp(28px, 4vw, 64px);
  border-right: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__intro h1 {
  max-width: 690px;
  margin-bottom: clamp(20px, 2.6vw, 34px);
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: 0.94;
}

.ema-martin-profile .ema-martin-profile__intro .ema-button {
  width: min(100%, 320px);
  margin-top: 28px;
}

.ema-martin-profile .ema-martin-profile__intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.ema-martin-profile .ema-martin-profile__history {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.ema-martin-profile .ema-martin-profile__history-media {
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.ema-martin-profile .ema-martin-profile__history-media img {
  object-position: center;
}

.ema-martin-profile .ema-martin-profile__history .ema-martin-profile__copy {
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--ema-line);
}

/* Skyline */
.ema-martin-profile .ema-martin-profile__skyline {
  position: relative;
  z-index: 0;
  padding-block: var(--ema-martin-space);
  border-bottom: 1px solid var(--ema-line);
  isolation: isolate;
}

.ema-martin-profile .ema-martin-profile__skyline::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(211, 245, 234, 0.84), rgba(239, 249, 241, 0.48)),
    var(--ema-paper-deep);
  content: "";
}

.ema-martin-profile .ema-martin-profile__skyline .ema-martin-profile__section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: var(--ema-martin-gap);
  margin-bottom: clamp(36px, 5vw, 68px);
}

.ema-martin-profile .ema-martin-profile__skyline .ema-martin-profile__section-heading > .ema-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.ema-martin-profile .ema-martin-profile__skyline .ema-martin-profile__section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__skyline-copy p:last-child {
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__skyline-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
}

.ema-martin-profile .ema-martin-profile__skyline-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #101514;
}

.ema-martin-profile .ema-martin-profile__skyline-gallery img:nth-child(2) {
  object-position: center 42%;
}

/* Why EMA */
.ema-martin-profile .ema-martin-profile__ema {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: var(--ema-martin-gap);
  padding-block: var(--ema-martin-space);
  border-bottom: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__ema > .ema-martin-profile__section-heading {
  position: sticky;
  top: 30px;
}

.ema-martin-profile .ema-martin-profile__ema-copy p:last-child {
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__ema-copy {
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin: clamp(22px, 3vw, 38px) 0 0;
  border-block: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__facts > div {
  padding: clamp(22px, 3vw, 34px);
}

.ema-martin-profile .ema-martin-profile__facts > div:first-child {
  padding-left: 0;
}

.ema-martin-profile .ema-martin-profile__facts > div + div {
  border-left: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__facts dt {
  margin-bottom: 4px;
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ema-martin-profile .ema-martin-profile__facts dd {
  margin: 0;
  color: var(--ema-muted);
  font-size: 15px;
}

/* Method: three editorial modules */
.ema-martin-profile .ema-martin-profile__method {
  padding-block: var(--ema-martin-space);
  border-bottom: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__method-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  column-gap: var(--ema-martin-gap);
  padding-block: clamp(46px, 6vw, 80px);
  border-top: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__method-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.ema-martin-profile .ema-martin-profile__method-card > .ema-eyebrow {
  grid-column: 1 / -1;
}

.ema-martin-profile .ema-martin-profile__method-card h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__method-visual {
  min-width: 0;
}

.ema-martin-profile .ema-martin-profile__method-media {
  margin-top: clamp(24px, 3.2vw, 42px);
  overflow: hidden;
  background: transparent;
}

.ema-martin-profile .ema-martin-profile__method-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ema-martin-profile .ema-martin-profile__method-card--foundation .ema-martin-profile__method-media {
  aspect-ratio: 2 / 1;
}

.ema-martin-profile .ema-martin-profile__method-card--foundation .ema-martin-profile__method-media img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ema-martin-profile .ema-martin-profile__method-card--foundation .ema-martin-profile__method-copy {
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__method-copy > p:last-child {
  margin-bottom: 0;
}

.ema-martin-profile .ema-martin-profile__method-card--copilot {
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
}

.ema-martin-profile .ema-martin-profile__method-card--copilot .ema-martin-profile__method-visual {
  grid-column: 2;
}

.ema-martin-profile .ema-martin-profile__method-card--copilot .ema-martin-profile__method-copy {
  grid-column: 1;
  grid-row: 2;
  padding-right: clamp(28px, 4vw, 64px);
  border-right: 1px solid var(--ema-line);
}

.ema-martin-profile .ema-martin-profile__method-card--result {
  position: relative;
  z-index: 0;
  display: block;
  padding-block: clamp(62px, 8vw, 104px);
  border-top: 0;
  isolation: isolate;
}

.ema-martin-profile .ema-martin-profile__method-card--result::before {
  position: absolute;
  z-index: -1;
  inset: 0 50%;
  width: 100vw;
  background: linear-gradient(105deg, rgba(217, 245, 234, 0.76), rgba(244, 251, 246, 0.5));
  content: "";
  transform: translateX(-50%);
}

.ema-martin-profile .ema-martin-profile__method-card--result h2 {
  max-width: 1040px;
  margin-bottom: 24px;
}

.ema-martin-profile .ema-martin-profile__method-card--result > p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  color: #55464e;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.38;
}

/* Final consultation */
.ema-martin-profile .ema-martin-profile__consultation {
  margin-top: clamp(54px, 7vw, 88px);
  margin-bottom: clamp(34px, 4vw, 52px);
}

.ema-martin-profile .ema-martin-profile__consultation > div {
  max-width: 820px;
}

.ema-martin-profile .ema-martin-profile__consultation .ema-text-button {
  width: min(100%, 290px);
  margin-top: 22px;
}

@media (max-width: 1020px) {
  .ema-martin-profile .ema-martin-profile__hero {
    grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.1fr);
  }

  .ema-martin-profile .ema-martin-profile__hero h1 {
    font-size: clamp(58px, 8.6vw, 88px);
  }

  .ema-martin-profile .ema-martin-profile__consultation {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .ema-martin-profile {
    --ema-martin-space: clamp(52px, 13vw, 76px);
  }

  .ema-martin-profile .ema-breadcrumbs {
    padding-top: 4px;
  }

  .ema-martin-profile .ema-martin-profile__hero,
  .ema-martin-profile .ema-martin-profile__split,
  .ema-martin-profile .ema-martin-profile__skyline .ema-martin-profile__section-heading,
  .ema-martin-profile .ema-martin-profile__ema,
  .ema-martin-profile .ema-martin-profile__method-card,
  .ema-martin-profile .ema-martin-profile__method-card--copilot {
    grid-template-columns: 1fr;
  }

  .ema-martin-profile .ema-martin-profile__hero {
    gap: 30px;
    padding-top: 22px;
  }

  .ema-martin-profile .ema-martin-profile__hero-copy {
    padding-block: 0;
  }

  .ema-martin-profile .ema-martin-profile__hero h1 {
    font-size: clamp(58px, 18vw, 92px);
  }

  .ema-martin-profile .ema-martin-profile__hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ema-martin-profile .ema-martin-profile__intro-media {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .ema-martin-profile .ema-martin-profile__intro > .ema-martin-profile__copy {
    padding-right: 0;
    border-right: 0;
  }

  .ema-martin-profile .ema-martin-profile__history-media {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .ema-martin-profile .ema-martin-profile__skyline .ema-martin-profile__section-heading > .ema-eyebrow,
  .ema-martin-profile .ema-martin-profile__method-card > .ema-eyebrow {
    grid-column: auto;
  }

  .ema-martin-profile .ema-martin-profile__skyline-gallery {
    grid-template-columns: 1fr;
  }

  .ema-martin-profile .ema-martin-profile__skyline-gallery img {
    aspect-ratio: 16 / 10;
  }

  .ema-martin-profile .ema-martin-profile__skyline-gallery img:nth-child(2) {
    aspect-ratio: 3 / 4;
  }

  .ema-martin-profile .ema-martin-profile__ema > .ema-martin-profile__section-heading {
    position: static;
  }

  .ema-martin-profile .ema-martin-profile__history .ema-martin-profile__copy,
  .ema-martin-profile .ema-martin-profile__ema-copy {
    padding-left: 0;
    border-left: 0;
  }

  .ema-martin-profile .ema-martin-profile__facts {
    grid-template-columns: 1fr;
  }

  .ema-martin-profile .ema-martin-profile__facts > div,
  .ema-martin-profile .ema-martin-profile__facts > div:first-child {
    padding: 20px 0;
  }

  .ema-martin-profile .ema-martin-profile__facts > div + div {
    border-top: 1px solid var(--ema-line);
    border-left: 0;
  }

  .ema-martin-profile .ema-martin-profile__method-card--copilot .ema-martin-profile__method-visual,
  .ema-martin-profile .ema-martin-profile__method-card--copilot .ema-martin-profile__method-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .ema-martin-profile .ema-martin-profile__method-card--copilot .ema-martin-profile__method-copy {
    padding-right: 0;
    border-right: 0;
  }

  .ema-martin-profile .ema-martin-profile__method-card--foundation .ema-martin-profile__method-copy {
    padding-left: 0;
    border-left: 0;
  }

  .ema-martin-profile .ema-martin-profile__method-card h2 {
    margin-bottom: 24px;
  }

  .ema-martin-profile .ema-martin-profile__method-visual h2 {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .ema-martin-profile :where(p) {
    font-size: 16px;
    line-height: 1.52;
  }

  .ema-martin-profile .ema-martin-profile__hero h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .ema-martin-profile .ema-martin-profile__hero-copy .ema-button,
  .ema-martin-profile .ema-martin-profile__consultation .ema-button,
  .ema-martin-profile .ema-martin-profile__consultation .ema-text-button {
    width: 100%;
  }

  .ema-martin-profile .ema-martin-profile__method-card--result > p:last-child {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ema-martin-profile *,
  .ema-martin-profile *::before,
  .ema-martin-profile *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gutenberg compatibility for the separately assigned editable review template. */
.ema-martin-profile--editable :where(.wp-block-group, .wp-block-image, .wp-block-buttons) {
  margin-block: 0;
}

.ema-martin-profile--editable :where(.wp-block-group, .wp-block-image, .wp-block-buttons) {
  box-sizing: border-box;
}

.ema-martin-profile--editable .is-layout-flow > :where(
  .wp-block-group:not(.ema-martin-profile__facts),
  .wp-block-image:not(.ema-martin-profile__method-media),
  .wp-block-buttons
) {
  margin-block: 0;
}

.ema-martin-profile--editable :where(
  .ema-martin-profile__copy,
  .ema-martin-profile__skyline-copy,
  .ema-martin-profile__ema-copy,
  .ema-martin-profile__method-copy
) > p.wp-block-paragraph {
  margin-bottom: 1em;
}

.ema-martin-profile--editable :where(
  .ema-martin-profile__copy,
  .ema-martin-profile__skyline-copy,
  .ema-martin-profile__ema-copy,
  .ema-martin-profile__method-copy
) > p.wp-block-paragraph:last-child {
  margin-bottom: 0;
}

.ema-martin-profile--editable .ema-martin-profile__history h2.wp-block-heading,
.ema-martin-profile--editable .ema-martin-profile__ema > .ema-martin-profile__section-heading h2.wp-block-heading {
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.ema-martin-profile--editable .ema-martin-profile__skyline-gallery > .wp-block-image {
	height: auto;
	aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101514;
}

.ema-martin-profile--editable .ema-martin-profile__skyline-gallery > .wp-block-image img {
  display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

.ema-martin-profile--editable .ema-martin-profile__skyline-gallery > .wp-block-image:nth-child(2) img {
  object-position: center 42%;
}

.ema-martin-profile--editable .ema-martin-profile__fact-number {
  margin: 0 0 4px;
  color: var(--ema-ink);
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ema-martin-profile--editable .ema-martin-profile__fact-label {
  margin: 0;
  color: var(--ema-muted);
  font-size: 15px;
}

.ema-martin-profile--editable .wp-block-button.ema-button,
.ema-martin-profile--editable .wp-block-button.ema-text-button {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: none;
  transform: none;
}

.ema-martin-profile--editable .wp-block-button.ema-button:hover,
.ema-martin-profile--editable .wp-block-button.ema-button:focus-within {
  box-shadow: none;
  transform: none;
}

.ema-martin-profile--editable .wp-block-button.ema-button > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--ema-radius);
  background: linear-gradient(105deg, #69dfca, #81ead3);
  color: var(--ema-ink) !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ema-martin-profile--editable .wp-block-button.ema-button > .wp-block-button__link:hover,
.ema-martin-profile--editable .wp-block-button.ema-button > .wp-block-button__link:focus-visible {
  box-shadow: 0 12px 26px rgba(21, 112, 91, 0.14);
  transform: translateY(-2px);
}

.ema-martin-profile--editable .wp-block-button.ema-text-button > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #a9bcc4;
  border-radius: 2px;
  background: transparent;
  color: var(--ema-ink) !important;
  font-size: 15px;
  font-weight: 550;
}

.ema-martin-profile--editable .wp-block-button.ema-text-button > .wp-block-button__link:hover,
.ema-martin-profile--editable .wp-block-button.ema-text-button > .wp-block-button__link:focus-visible {
  border-color: var(--ema-mint);
  background: rgba(103, 226, 193, 0.1);
}

.ema-martin-profile--editable .ema-martin-profile__consultation > .wp-block-buttons {
  width: min(100%, 320px);
  flex: 0 0 auto;
}

.ema-martin-profile--editable .ema-martin-profile__consultation > .wp-block-buttons .ema-button {
  width: 100%;
}

@media (max-width: 780px) {
	.ema-martin-profile--editable .ema-martin-profile__skyline-gallery > .wp-block-image {
		aspect-ratio: 16 / 10;
	}

	.ema-martin-profile--editable .ema-martin-profile__skyline-gallery > .wp-block-image:nth-child(2) {
		aspect-ratio: 3 / 4;
	}

  .ema-martin-profile--editable .ema-martin-profile__consultation > .wp-block-buttons {
    width: 100%;
  }
}
