.global-nav a[aria-current="page"] { color: var(--color-accent-strong); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 30rem;
  padding: 6.25rem 0 2.5rem;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -14rem;
  right: -14rem;
  width: min(72vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgb(138 112 80 / 18%);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  display: grid;
  gap: 1.6rem;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
}

.hero__title {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: clamp(1.9rem, 8.6vw, 4.2rem);
  line-height: 1.16;
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 32rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 2;
}

.hero__lead p {
  margin-bottom: 0.75rem;
}

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

.hero__title,
.home-photo--hero,
.hero__lead {
  opacity: 0;
  animation: home-hero-fade-up 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title { animation-delay: 140ms; }
.home-photo--hero { animation-delay: 220ms; }
.hero__lead { animation-delay: 320ms; }

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: none;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue > span:last-child {
  display: block;
  width: 4rem;
  height: 1px;
  background: currentcolor;
}

.home-photo {
  position: relative;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.home-photo::before,
.home-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.home-photo::before {
  background:
    linear-gradient(120deg, rgb(255 253 248 / 8%), rgb(31 38 34 / 16%)),
    radial-gradient(circle at 72% 18%, rgb(255 255 255 / 24%), transparent 32%);
  mix-blend-mode: screen;
}

.home-photo::after {
  border: 1px solid rgb(255 255 255 / 26%);
  box-shadow: inset 0 0 0 1px rgb(31 38 34 / 6%);
}

.home-photo .photo-slot__surface {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgb(54 64 56 / 88%), rgb(199 179 146 / 58%)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 7px);
}

.home-photo .photo-slot__index,
.home-photo .photo-slot__label {
  display: none;
}

.home-photo--hero {
  width: min(88%, 25rem);
  aspect-ratio: 4 / 5.15;
  margin-left: auto;
}

.home-photo--hero .photo-slot__surface {
  background:
    linear-gradient(140deg, rgb(31 38 34 / 20%) 0%, rgb(31 38 34 / 8%) 48%, rgb(255 253 248 / 20%) 100%),
    url("../images/home/home-ai-hero.png") 52% center / cover no-repeat;
}

.home-photo--about {
  aspect-ratio: 16 / 10;
}

.home-photo--about .photo-slot__surface {
  background:
    linear-gradient(150deg, rgb(231 224 209 / 92%) 0%, rgb(153 139 111 / 70%) 54%, rgb(54 64 56 / 86%) 100%),
    radial-gradient(circle at 26% 28%, rgb(255 255 255 / 30%), transparent 30%);
}

.home-photo--brand-reset,
.home-photo--brand-next {
  width: 100%;
  margin-bottom: 1.35rem;
}

.home-photo--brand-reset {
  aspect-ratio: 16 / 11;
}

.home-photo--brand-next {
  aspect-ratio: 5 / 4;
}

.home-photo--brand-reset .photo-slot__surface {
  background:
    linear-gradient(135deg, rgb(31 38 34 / 12%), rgb(31 38 34 / 24%)),
    url("../images/the-reset/reset-hero.jpg") 58% center / cover no-repeat;
}

.home-photo--brand-next .photo-slot__surface {
  background:
    linear-gradient(135deg, rgb(31 38 34 / 16%), rgb(31 38 34 / 28%)),
    url("../images/home/home-brand-next.jpg") 68% center / cover no-repeat;
}

.home-photo--services {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.75rem;
}

.home-photo--services .photo-slot__surface {
  background:
    linear-gradient(115deg, rgb(255 253 248 / 72%) 0%, rgb(255 253 248 / 28%) 48%, rgb(31 38 34 / 28%) 100%),
    url("../images/home/home-ai-services.png") 48% center / cover no-repeat;
}

.home-photo--projects {
  width: min(100%, 32rem);
  aspect-ratio: 18 / 10;
}

.home-photo--projects .photo-slot__surface {
  background:
    linear-gradient(145deg, rgb(248 244 235 / 90%) 0%, rgb(196 177 142 / 66%) 48%, rgb(62 70 61 / 82%) 100%);
}

.home-photo--contact {
  aspect-ratio: 16 / 8;
  opacity: 0.78;
}

.home-photo--contact::after {
  border-color: rgb(255 255 255 / 14%);
}

.home-photo--contact .photo-slot__surface {
  background:
    linear-gradient(125deg, rgb(240 232 212 / 70%) 0%, rgb(119 124 103 / 48%) 48%, rgb(23 30 27 / 88%) 100%);
}

.gymgrit {
  background: var(--color-surface);
}

.gymgrit__inner {
  display: grid;
  gap: var(--space-3);
}

.gymgrit__heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 7.4vw, 3.55rem);
  line-height: 1.36;
}

.gymgrit__message {
  align-self: end;
}

.gymgrit__body {
  max-width: 38rem;
  color: var(--color-muted);
}

.gymgrit__body p {
  margin-bottom: 0.85rem;
  line-height: 1.95;
}

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

.purpose-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purpose-list article {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-border);
}

.purpose-list__label {
  margin-bottom: 0.75rem;
  color: var(--color-accent-strong);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.purpose-list h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.55;
}

.section-heading--center {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .section-lead {
  margin-right: auto;
  margin-left: auto;
}

.section-heading--center h2 {
  font-size: clamp(1.65rem, 6vw, 3.2rem);
}

.business {
  background: var(--color-background);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.business-card {
  position: relative;
  display: grid;
  min-height: 15.5rem;
  overflow: hidden;
  border: 1px solid rgb(213 211 203 / 86%);
  background: var(--color-surface);
  box-shadow: 0 1rem 2.8rem rgb(16 26 34 / 6%);
  isolation: isolate;
}

.business-card::after {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 2;
  color: var(--color-primary);
  font-size: 1.1rem;
  content: "↗";
}

.business-card__photo {
  position: absolute;
  inset: 0;
  opacity: 0.86;
}

.business-card__photo::before {
  background:
    linear-gradient(90deg, rgb(255 253 248 / 96%) 0%, rgb(255 253 248 / 84%) 34%, rgb(255 253 248 / 16%) 72%),
    radial-gradient(circle at 78% 20%, rgb(255 255 255 / 24%), transparent 28%);
  mix-blend-mode: normal;
}

.business-card__photo::after {
  border: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}

.business-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 20rem;
  min-height: inherit;
  padding: 0.9rem 0.8rem 2rem;
}

.business-card__number {
  margin-bottom: 0.65rem;
  color: var(--color-accent-strong);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

.business-card h3 {
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 4.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
}

.business-card p {
  margin-bottom: 0;
  color: var(--color-secondary);
  font-size: 0.75rem;
  line-height: 1.6;
}

.business-card__photo--operation .photo-slot__surface {
  background:
    linear-gradient(135deg, rgb(31 38 34 / 24%), rgb(31 38 34 / 8%)),
    url("../images/home/home-ai-business-operation.png") 48% center / cover no-repeat;
}

.business-card__photo--produce .photo-slot__surface {
  background:
    linear-gradient(140deg, rgb(31 38 34 / 18%), rgb(31 38 34 / 10%)),
    url("../images/home/home-ai-business-produce.png") 48% center / cover no-repeat;
}

.business-card__photo--consulting .photo-slot__surface {
  background:
    linear-gradient(125deg, rgb(31 38 34 / 20%), rgb(31 38 34 / 14%)),
    url("../images/home/home-ai-business-consulting.png") 44% center / cover no-repeat;
}

.business-card__photo--equipment .photo-slot__surface {
  background:
    linear-gradient(130deg, rgb(31 38 34 / 18%), rgb(31 38 34 / 12%)),
    url("../images/home/home-ai-business-equipment.png") 50% center / cover no-repeat;
}

.business__action,
.brands__action,
.services__action {
  display: flex;
  justify-content: center;
  padding-top: 1.35rem;
}

.brands {
  background: var(--color-surface);
}

.brand-tile-list {
  display: grid;
  gap: 1rem;
}

.brand-tile {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.brand-tile .home-photo {
  aspect-ratio: 16 / 8.7;
  margin: 0;
}

.brand-tile__content {
  padding: 1.2rem;
}

.brand-feature__number {
  margin-bottom: 0.65rem;
  color: var(--color-accent-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-tile h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.08;
}

.brand-tile__subtitle {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(0.78rem, 3.2vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.85;
}

.brand-tile__content > p:not(.brand-tile__subtitle, .brand-feature__number) {
  margin-bottom: 0.4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.services {
  background: var(--color-surface-muted);
}

.service-list {
  border-top: 1px solid var(--color-border);
}

.service-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-card__head {
  display: flex;
  justify-content: space-between;
  color: var(--color-accent-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.service-card__head p {
  margin-bottom: 0;
}

.service-card__content h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.24;
}

.service-card__content p {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

.home-projects {
  background: var(--color-background);
}

.home-projects__inner {
  display: grid;
  gap: var(--space-3);
}

.home-projects h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.home-projects__body {
  max-width: 38rem;
}

.home-projects__body p {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  line-height: 1.9;
}

.home-projects__body p:first-child {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

.home-projects__body .text-link {
  margin-top: 1.3rem;
}

.contact {
  overflow: hidden;
}

.contact__inner {
  display: grid;
  gap: var(--space-3);
  max-width: var(--container);
  text-align: left;
}

.contact__inner h2 {
  margin-inline: 0;
}

.contact__inner h2 span {
  display: block;
}

.contact__body {
  max-width: 32rem;
}

.contact__body p {
  margin-bottom: 1.35rem;
  color: rgb(255 253 248 / 72%);
  line-height: 1.9;
}

@keyframes home-hero-fade-up {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 44rem) {
  .hero {
    min-height: 34rem;
    padding-top: 7.25rem;
  }

  .hero__title {
    max-width: 13ch;
    font-size: clamp(3.2rem, 7vw, 5.55rem);
  }

  .hero__title span {
    white-space: nowrap;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(18rem, 0.72fr);
    grid-template-areas:
      "content visual";
    align-items: center;
    column-gap: var(--space-5);
  }

  .hero__content { grid-area: content; }
  .home-photo--hero { grid-area: visual; width: 100%; margin-left: 0; }

  .purpose-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

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

  .business-grid {
    gap: 1rem;
  }

  .business-card {
    min-height: 22rem;
  }

  .business-card__content {
    padding: 1.5rem 1.4rem 2.6rem;
  }

  .business-card__number {
    margin-bottom: 0.9rem;
    font-size: 1.65rem;
  }

  .business-card p {
    font-size: 0.875rem;
    line-height: 1.75;
  }

  .brand-tile__content {
    padding: 1.35rem;
  }

  .home-photo--services {
    width: min(100%, 58rem);
    margin-left: auto;
    margin-bottom: var(--space-4);
    aspect-ratio: 21 / 8;
  }

  .service-card {
    grid-template-columns: minmax(9rem, 0.5fr) minmax(0, 1.5fr);
    gap: var(--space-4);
    padding: var(--space-3) 0;
  }

  .service-card__head {
    display: block;
  }

  .service-card__head p {
    margin-top: 0.5rem;
  }

  .home-projects__inner {
    grid-template-columns: minmax(0, 0.78fr) minmax(18rem, 1fr);
    grid-template-areas:
      "title photo"
      "body photo";
    align-items: end;
    column-gap: var(--space-5);
  }

  .home-projects__inner > div:first-child { grid-area: title; }
  .home-photo--projects { grid-area: photo; justify-self: end; }
  .home-projects__body { grid-area: body; }

  .contact__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.7fr);
    grid-template-areas:
      "title photo"
      "body photo";
    align-items: end;
    column-gap: var(--space-5);
  }

  .contact__inner > div:first-child { grid-area: title; }
  .home-photo--contact { grid-area: photo; align-self: stretch; min-height: 16rem; }
  .contact__body { grid-area: body; padding-bottom: 0.3rem; }
}

@media (min-width: 64rem) {
  .hero {
    min-height: clamp(39rem, 70svh, 45rem);
    padding: 7rem 0 4rem;
  }

  .gymgrit__inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(25rem, 1.08fr);
    grid-template-areas:
      "heading heading"
      "photo message"
      "purpose purpose";
    align-items: end;
    column-gap: var(--space-6);
    row-gap: var(--space-4);
  }

  .gymgrit__heading { grid-area: heading; }
  .home-photo--about { grid-area: photo; }
  .gymgrit__message { grid-area: message; padding-bottom: 0.4rem; }
  .purpose-list { grid-area: purpose; max-width: 58rem; margin-top: var(--space-2); }

  .business-grid {
    gap: 1.2rem;
  }

  .business-card {
    min-height: 24.5rem;
  }

  .brand-tile-list {
    gap: 1.2rem;
  }
}

@media (min-width: 80rem) {
  .scroll-cue {
    display: flex;
  }
}

@media (max-width: 43.99rem) {
  .hero::before {
    top: -9rem;
    right: -13rem;
    width: 25rem;
  }

  .section-heading {
    margin-bottom: 1.6rem;
  }

  .section-heading h2 {
    margin-bottom: 0.8rem;
  }

  .section-lead {
    line-height: 1.75;
  }

  .hero__title span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__title {
    font-size: clamp(1.72rem, 8vw, 2.15rem);
    line-height: 1.26;
  }

  .home-photo--hero {
    width: min(82%, 21rem);
  }

  .home-photo--about,
  .home-photo--services,
  .home-photo--projects,
  .home-photo--contact {
    aspect-ratio: 16 / 10;
  }

  .gymgrit__heading h2 {
    margin-bottom: 0;
  }

  .section-heading--center {
    text-align: left;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .business-card {
    min-height: 15.5rem;
  }

  .business-card__content {
    max-width: 17rem;
    padding: 1rem 0.95rem 2rem;
  }

  .business-card__number {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
  }

  .business-card h3 {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    line-height: 1.35;
  }

  .business-card p {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .home-projects h2 {
    margin-bottom: 0;
  }

  .brands__action .text-link,
  .business__action .text-link,
  .services__action .text-link,
  .home-projects__body .text-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > .eyebrow,
  .hero__title,
  .home-photo--hero,
  .hero__lead {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
