.hero.home-studio {
  /* Leave space for the minarets and, on tablets, the tree behind the actions. */
  --shore-clearance: max(calc(17.5vw + 1.25rem), min(calc(25vw + 1rem), 12.5rem));
  position: relative;
  isolation: isolate;
  min-height: calc(100vw / 3);
  margin-bottom: clamp(24px, 3vw, 48px);
  padding: 0;
  background: var(--white, #fff);
}

.home-studio-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/images/waterfront-studio-1440.webp?v=3") right bottom / 100% auto no-repeat;
  background-image: image-set(
    url("/assets/images/waterfront-studio-1440.webp?v=3") 1x,
    url("/assets/images/waterfront-studio-2172.webp?v=3") 2x
  );
}

.home-studio .hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.5vw, 24px);
  padding: clamp(28px, 3.6vw, 64px) 0 var(--shore-clearance);
}

.home-studio .hero-main h1 {
  max-width: min(100%, clamp(36rem, 68vw, 67rem));
  font-size: clamp(2.125rem, 1.5rem + 2.35vw, 4.125rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.home-studio .hero-copy {
  display: grid;
  justify-items: start;
  gap: clamp(16px, 1.5vw, 24px);
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-studio .hero-copy > p:first-child {
  width: min(100%, 44ch);
  margin: 0;
  font-size: clamp(1rem, .875rem + .35vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.home-studio .hero-actions {
  justify-self: stretch;
  gap: 4px clamp(12px, 1.5vw, 24px);
  margin: 0;
}

.home-studio .hero-actions .button {
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
}

@media (min-width: 1441px) {
  .home-studio-art {
    background-image: url("/assets/images/waterfront-studio-2172.webp?v=3");
  }
}

@media (max-width: 800px) {
  .home-studio-art {
    background-image: url("/assets/images/waterfront-studio-840.webp?v=3");
    background-image: image-set(
      url("/assets/images/waterfront-studio-840.webp?v=3") 1x,
      url("/assets/images/waterfront-studio-1440.webp?v=3") 2x
    );
  }
}

@media (max-width: 600px) {
  .hero.home-studio {
    --shore-clearance: calc(42vw + .75rem);
    min-height: 56.25vw;
  }

  .home-studio-art {
    background-image: url("/assets/images/waterfront-studio-mobile.webp?v=3");
  }

  .home-studio .hero-actions .button {
    gap: 8px;
    padding-inline: 12px;
  }
}

.home-profile {
  --profile-inset: clamp(24px, 3.3vw, 48px);
}

.home-profile-spread {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.15fr);
}

.home-profile-intro {
  padding: var(--profile-inset);
  background: var(--blue);
  color: var(--white);
}

.home-profile-intro h2 {
  font-size: clamp(2rem, 1.15rem + 2.1vw, 3.375rem);
  line-height: 1.1;
}

.home-profile-intro h2 a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35em;
  min-height: 44px;
  padding-bottom: clamp(16px, 1.7vw, 24px);
  border-bottom: 1px solid rgb(255 255 255 / 48%);
}

.home-profile-intro h2 a:is(:hover, :focus-visible) span {
  text-decoration: underline;
  text-decoration-thickness: .045em;
  text-underline-offset: .13em;
}

.home-profile-intro a:focus-visible {
  outline-color: var(--white);
}

.home-profile-intro .icon {
  width: .72em;
  height: .72em;
  stroke-width: 1.5;
}

.home-profile-intro p {
  max-width: 52ch;
  margin-top: 16px;
  color: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.home-profile-intro .home-profile-lead {
  margin-top: clamp(24px, 2.2vw, 32px);
  font-size: clamp(1.125rem, .9rem + .55vw, 1.375rem);
  line-height: 1.45;
  font-weight: 550;
}

.home-profile-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.home-profile-view figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 16px 0 0 var(--profile-inset);
  color: var(--copy);
  font-size: .8125rem;
}

.home-profile-view figcaption span:first-child {
  color: var(--ink);
  font-weight: 650;
}

.home-profile-view img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 48rem) {
  .home-profile-spread {
    grid-template-columns: 1fr;
  }

  .home-profile-view {
    border-top: 0;
  }

  .home-profile-view figcaption {
    padding: 16px 0 0;
  }
}

.practice-illustration {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
}

@media (min-width: 601px) {
  .illustrated-practice {
    grid-template-areas:
      "heading story"
      "illustration story";
    grid-template-rows: auto 1fr;
    align-items: start;
    row-gap: clamp(16px, 2.5vw, 36px);
  }

  .illustrated-practice .practice-heading {
    grid-area: heading;
  }

  .illustrated-practice .practice-content {
    grid-area: story;
  }

  .practice-illustration {
    grid-area: illustration;
  }
}

@media (max-width: 600px) {
  .practice-illustration {
    justify-self: center;
  }
}

.ai-story {
  padding-block: clamp(48px, 6.2vw, 96px) clamp(30px, 3.8vw, 56px);
  color: var(--white);
  background: var(--blue);
}

.ai-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.ai-story .agent-memory {
  width: 100%;
  max-width: 38rem;
}

.ai-story-copy h3 {
  max-width: 21ch;
  font-size: clamp(2.4rem, 1.1rem + 3.1vw, 4.125rem);
  line-height: 1.04;
}

.ai-story-copy h3 span {
  display: block;
  color: color-mix(in srgb, var(--white) 78%, var(--blue));
}

.ai-story-method {
  max-width: 55ch;
  margin-top: 16px;
  color: var(--diagram-highlight);
}

.ai-story-question {
  max-width: 48ch;
  margin-top: clamp(24px, 2.6vw, 38px);
  color: var(--white);
  font-size: clamp(1.15rem, .98rem + .65vw, 1.55rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.ai-story-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
  font-weight: 700;
}

.ai-story-link:hover {
  background: var(--diagram-highlight);
}

.ai-story a:focus-visible {
  outline-color: var(--white);
}

.ai-story-products {
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 4.5vw, 68px);
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 42%);
}

.ai-story-products h4 {
  max-width: 20ch;
  font-size: clamp(1.15rem, .9rem + .7vw, 1.5rem);
  line-height: 1.25;
}

.ai-story-products a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.ai-story-products strong,
.ai-story-products small {
  display: block;
}

.ai-story-products strong {
  font-size: 1.125rem;
}

.ai-story-products small {
  margin-top: 2px;
  color: var(--diagram-highlight);
  font-size: .8125rem;
  line-height: 1.5;
}

.ai-story-products a:hover strong {
  text-decoration: underline;
}

@media (max-width: 50rem) {
  .ai-story-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-story-products {
    grid-template-columns: 1fr 1fr;
  }

  .ai-story-products h4 {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 36rem) {
  .ai-story-products {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ai-story-products a {
    padding-block: 8px;
  }

  .ai-story-products a + a {
    border-top: 1px solid rgb(255 255 255 / 28%);
  }
}
