.idealglow-home {
  --home-section-space: clamp(4rem, 8vw, 7.5rem);
  color: var(--ink);
}

.idealglow-home :is(h1, h2, h3, p, ul, ol) {
  margin: 0;
}

.idealglow-home :is(h1, h2, h3) {
  font-weight: 500;
}

.idealglow-home p {
  color: var(--muted);
  line-height: 1.6;
}

.idealglow-home a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.idealglow-home .home-hero {
  min-height: 36rem;
  min-height: clamp(36rem, 74svh, 47rem);
  display: grid;
  align-items: center;
  color: #f8f4ef;
  background-color: #100e0d;
  background-image:
    linear-gradient(90deg, #100e0d 0%, rgba(16, 14, 13, .91) 24%, rgba(16, 14, 13, .63) 51%, rgba(16, 14, 13, .1) 100%),
    linear-gradient(0deg, #100e0d 0%, transparent 34%, transparent 80%, rgba(16, 14, 13, .36) 100%),
    url('/assets/test-bench.webp');
  background-size: cover;
  background-position: center, center, right center;
  border-bottom: 1px solid var(--line);
}

.idealglow-home .home-hero__inner {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.idealglow-home .home-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.idealglow-home .home-hero__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(1.15rem, 2.5vw, 2rem);
  color: #e4bb91;
}

.idealglow-home .home-hero__label::before {
  width: 1.5rem;
  height: 1px;
  flex: none;
  background-color: currentColor;
  content: '';
}

.idealglow-home .home-hero h1 {
  font-size: clamp(2.8rem, 7.1vw, 7.3rem);
  line-height: .99;
  letter-spacing: -.064em;
}

.idealglow-home .home-hero h1 span {
  display: block;
  color: #e4bb91;
}

.idealglow-home .home-hero__intro {
  max-width: 36ch;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  color: #e4dad0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.idealglow-home :is(.home-hero__actions, .home-contact__actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.8rem;
}

.idealglow-home .home-hero .button--secondary {
  color: #f8f4ef;
  background-color: rgba(16, 14, 13, .44);
  border-color: rgba(228, 218, 208, .44);
}

.idealglow-home .home-hero .button--secondary:hover {
  background-color: rgba(16, 14, 13, .82);
  border-color: #e4bb91;
}

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

.idealglow-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.idealglow-home .home-section h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.054em;
  text-wrap: balance;
}

.idealglow-home .home-section h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.idealglow-home .home-label + h2 {
  margin-top: .9rem;
}

.idealglow-home .home-section__intro h2 + p {
  max-width: 34ch;
  margin-top: 1.2rem;
}

.idealglow-home .home-link {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1.35rem;
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: .29em;
}

.idealglow-home .home-link:hover {
  color: var(--ink);
}

.idealglow-home .home-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.idealglow-home .home-services__grid li {
  padding-block: 1.45rem 1.65rem;
  border-bottom: 1px solid var(--line);
}

.idealglow-home .home-services__grid li:nth-child(odd) {
  padding-right: clamp(.85rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.idealglow-home .home-services__grid li:nth-child(even) {
  padding-left: clamp(.85rem, 3vw, 2rem);
}

.idealglow-home .home-services__grid p,
.idealglow-home .home-sequence p {
  margin-top: .45rem;
  font-size: .95rem;
}

.idealglow-home .home-acceptance {
  background-color: var(--surface);
  border-block: 1px solid var(--line);
}

.idealglow-home .home-sequence {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.idealglow-home .home-sequence li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.idealglow-home .home-sequence li > div {
  padding: 1.1rem 0 1.15rem clamp(.85rem, 3vw, 1.55rem);
}

.idealglow-home .home-sequence__number {
  padding-top: 1.32rem;
  color: var(--accent);
  border-right: 1px solid var(--line);
  font: .78rem / 1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.idealglow-home .home-engagement__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}

.idealglow-home .home-engagement__grid article {
  padding-block: clamp(1.6rem, 4vw, 2.65rem);
}

.idealglow-home .home-engagement__grid article:first-child {
  padding-right: clamp(1rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
}

.idealglow-home .home-engagement__grid article + article {
  padding-left: clamp(1rem, 4vw, 3rem);
}

.idealglow-home .home-engagement__grid h3 {
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
}

.idealglow-home .home-engagement__grid p {
  max-width: 42ch;
  margin-top: .7rem;
}

.idealglow-home .home-engagement__timing {
  padding-top: 1rem;
  font-size: .95rem;
}

.idealglow-home .home-engagement__timing strong {
  margin-right: .5rem;
  color: var(--ink);
  font-weight: 600;
}

.idealglow-home .home-experience {
  padding-block: clamp(3rem, 5vw, 4.75rem);
  border-top: 1px solid var(--line);
}

.idealglow-home .home-experience h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.idealglow-home .home-experience__names {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.idealglow-home .home-experience__names li {
  display: grid;
  place-items: center;
  min-height: clamp(4.75rem, 8vw, 6rem);
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--line);
}

.idealglow-home .home-experience__names img {
  width: auto;
  height: auto;
  max-width: min(100%, 8.5rem);
  max-height: 2rem;
  object-fit: contain;
}

.idealglow-home .home-experience__names .home-experience__logo--light {
  filter: brightness(0) invert(1);
}

.idealglow-home .home-experience__names .home-experience__logo--tall {
  max-height: 3.6rem;
}

.idealglow-home .home-close {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  background-image: radial-gradient(ellipse at 96% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 59%);
}

.idealglow-home .home-close .home-section__intro h2 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.idealglow-home .home-contact {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid var(--line);
}

.idealglow-home .home-contact h2 + p {
  max-width: 43ch;
  margin-top: 1.2rem;
}

.idealglow-home .home-email {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-underline-offset: .23em;
}

.idealglow-home .home-email:hover {
  color: var(--accent);
}

@media (max-width: 52rem) {
  .idealglow-home .home-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .idealglow-home .home-section h2 {
    max-width: 19ch;
  }

  .idealglow-home .home-contact {
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 36rem) {
  .idealglow-home .home-hero {
    min-height: 34rem;
    align-items: end;
    background-image:
      linear-gradient(0deg, #100e0d 2%, rgba(16, 14, 13, .94) 35%, rgba(16, 14, 13, .78) 67%, rgba(16, 14, 13, .16) 100%),
      url('/assets/test-bench.webp');
    background-position: center, 75% top;
  }

  .idealglow-home .home-hero__inner {
    padding-block: 7.75rem 3.4rem;
  }

  .idealglow-home .home-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 9.65vw, 3.55rem);
  }

  .idealglow-home .home-hero h1 span {
    display: inline;
  }

  .idealglow-home .home-engagement__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .idealglow-home .home-engagement__grid article:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .idealglow-home .home-engagement__grid article + article {
    padding-left: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  .idealglow-home a {
    animation: none;
    transition: none;
  }
}
