/* Beyondge AI Solution Portal — Liquid Glass Ethereal */

:root {
  --portal-paper: #f8f8f7;
  --portal-white: #ffffff;
  --portal-ink: #171717;
  --portal-graphite: #353535;
  --portal-muted: #72767e;
  --portal-line: rgba(17, 17, 17, 0.15);
  --portal-line-light: rgba(17, 17, 17, 0.08);
  --portal-blue: #5d8ff2;
  --portal-violet: #8d6ce7;
  --portal-pink: #ec56ad;
  --portal-peach: #f5a58d;
  --portal-gradient: linear-gradient(100deg, var(--portal-blue), var(--portal-violet) 38%, var(--portal-pink) 72%, var(--portal-peach));
  --container-max: 90rem;
  --container-pad: clamp(1.25rem, 4.2vw, 4.75rem);
  --section-space: clamp(6rem, 11vw, 11rem);
  --color-bg: var(--portal-paper);
  --color-text: var(--portal-ink);
  --color-text-muted: var(--portal-muted);
  --color-border: var(--portal-line);
  --heading-align: left;
}

html {
  background: var(--portal-paper);
  scrollbar-color: var(--portal-ink) var(--portal-paper);
}

body {
  overflow-x: hidden;
  color: var(--portal-ink);
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(17, 17, 17, .045) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(17, 17, 17, .045) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(17, 17, 17, .045) 75%, transparent calc(75% + .5px)),
    var(--portal-paper);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: .01em;
}

::selection {
  color: #fff;
  background: var(--portal-pink);
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.portal-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  height: 3px;
  pointer-events: none;
}

.portal-progress span {
  display: block;
  width: var(--portal-scroll, 0%);
  height: 100%;
  background: var(--portal-gradient);
}

.portal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--portal-ink);
  background: rgba(248, 248, 247, .68);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: background .3s ease, border-color .3s ease;
}

.portal-header.is-scrolled {
  background: rgba(248, 248, 247, .92);
  border-color: var(--portal-line-light);
}

.portal-header__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  min-height: 5rem;
}

.portal-header__brand {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.portal-header__brand img {
  width: 8.25rem;
  height: auto;
}

.portal-header__brand span {
  padding-left: .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  border-left: 1px solid var(--portal-line);
}

.portal-header__nav {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.25rem);
  justify-content: center;
}

.portal-header__nav a,
.portal-header__contact {
  position: relative;
  color: var(--portal-ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: -.5rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--portal-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.portal-header__nav a:hover::after,
.portal-header__nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.portal-header__contact {
  display: inline-flex;
  gap: .85rem;
  align-items: center;
  justify-self: end;
  padding: .85rem 1.2rem;
  color: #fff;
  background: var(--portal-ink);
  border: 1px solid var(--portal-ink);
  transition: color .25s ease, background .25s ease;
}

.portal-header__contact:hover {
  color: var(--portal-ink);
  background: transparent;
}

.portal-eyebrow {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin: 0 0 2rem;
  color: var(--portal-graphite);
  font-family: var(--font-mono);
  font-size: clamp(.68rem, .8vw, .78rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.portal-eyebrow::before {
  width: 2.4rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.portal-actions {
  display: flex;
  gap: .65rem;
  align-items: stretch;
  margin-top: 2rem;
}

.portal-button {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.7rem;
  padding: 1rem 1.5rem;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--portal-ink);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.portal-button:hover {
  transform: translateY(-3px);
}

.portal-button--dark {
  color: #fff;
  font-size: var(--text-lg);
  background: var(--portal-ink);
}

.portal-button--dark:hover {
  color: var(--portal-ink);
  background: rgba(255, 255, 255, .72);
}

.portal-button--line {
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
}

.portal-button--line:hover {
  color: #fff;
  background: var(--portal-ink);
}

.portal-hero {
  position: relative;
  min-height: 100svh;
  padding-top: 5rem;
  overflow: hidden;
  background-color: #fbfbfc;
  background-image:
    linear-gradient(90deg, rgba(251, 251, 252, .98) 0%, rgba(251, 251, 252, .9) 30%, rgba(251, 251, 252, .15) 63%, rgba(251, 251, 252, 0) 100%),
    url("../assets/img/portal-01-sweeping.jpg");
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}

.portal-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: var(--portal-line);
}

.portal-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 5rem);
  padding-top: clamp(4rem, 9vh, 7rem);
  padding-bottom: clamp(7rem, 12vh, 9rem);
}

.portal-hero__copy {
  position: relative;
  z-index: 2;
  width: min(50rem, 62%);
}

@media (min-width: 821px) {
  .portal-hero__copy {
    /* Align the main headline with the AI Vision hero. */
    transform: translateY(clamp(-4.125rem, calc(-6.5vh + 1.375rem), -2.125rem));
  }
}

.portal-hero__title {
  display: flex;
  flex-direction: column;
  max-width: 11ch;
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(3.8rem, 8.5vw, 9rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
}

.portal-hero__title span:nth-child(2) {
  margin: .17em 0;
  font-size: .46em;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: -.04em;
}

.portal-hero__title .portal-hero__accent {
  position: relative;
  align-self: flex-start;
  width: max-content;
  max-width: none;
  margin-top: 0;
  padding: .02em .06em .13em 0;
  font-size: .84em;
  line-height: 1;
  white-space: nowrap;
}

.portal-hero__accent::after {
  position: absolute;
  right: 0;
  bottom: -.08em;
  left: 0;
  height: .055em;
  content: "";
  background: var(--portal-gradient);
}

.portal-hero__lead {
  max-width: 43rem;
  margin: clamp(1.75rem, 3vw, 3rem) 0 0;
  color: #2b2b2b;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: .045em;
}

.portal-hero__scope {
  position: absolute;
  right: var(--container-pad);
  bottom: 2rem;
  left: var(--container-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 48rem;
  margin: 0;
  border-top: 1px solid var(--portal-line);
}

.portal-hero__scope div {
  display: flex;
  gap: .9rem;
  align-items: baseline;
  padding: .85rem 1rem .1rem 0;
}

.portal-hero__scope dt {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
}

.portal-hero__scope dd {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-edition {
  position: absolute;
  top: 2rem;
  right: var(--container-pad);
  margin: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.portal-scroll {
  position: absolute;
  right: var(--container-pad);
  bottom: 2.2rem;
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  color: var(--portal-ink);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-scroll i {
  width: 3.5rem;
  height: 1px;
  background: var(--portal-ink);
}

.portal-section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
  border-bottom: 1px solid var(--portal-line-light);
}

.portal-section::after {
  position: absolute;
  top: 2.2rem;
  right: var(--container-pad);
  content: attr(data-section) " / 06";
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.portal-section__intro {
  position: relative;
  z-index: 2;
  max-width: 74rem;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.portal-section__intro--split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  max-width: none;
}

.portal-section__intro--split .portal-lead {
  margin-bottom: .7rem;
}

.portal-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(3.2rem, 6.2vw, 6.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.07em;
}

.portal-title span + span {
  margin-top: .07em;
}

.portal-lead {
  max-width: 48rem;
  margin: 2.25rem 0 0;
  color: var(--portal-graphite);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 500;
  line-height: 1.95;
}

.portal-problem {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(248, 248, 247, .03) 0%, rgba(248, 248, 247, .16) 34%, rgba(248, 248, 247, .76) 66%, rgba(248, 248, 247, .94) 100%),
    radial-gradient(circle at 72% 20%, rgba(201, 204, 255, .2), transparent 35%),
    url("../assets/img/portal-04-curtain.jpg") top left / min(98rem, 88vw) auto no-repeat,
    linear-gradient(135deg, #eef6ff 0%, var(--portal-paper) 58%, #fff2f8 100%);
}

.portal-problem__intro {
  width: min(88rem, 78%);
  max-width: none;
  margin-left: auto;
}

.portal-problem__intro .portal-title {
  font-size: clamp(3rem, 4.4vw, 4.8rem);
}

.portal-problem__intro .portal-title span:last-child {
  white-space: nowrap;
}

.portal-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--portal-line);
  backdrop-filter: blur(20px) saturate(1.15);
}

.portal-stats > div {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
}

.portal-stats > div + div {
  border-left: 1px solid var(--portal-line);
}

.portal-stats dt {
  display: flex;
  align-items: baseline;
  color: var(--portal-ink);
  font-size: clamp(3.7rem, 6vw, 6.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.07em;
}

.portal-stats dt span {
  margin-left: .12em;
  font-size: .28em;
  font-weight: 700;
  letter-spacing: 0;
}

.portal-stats dt .portal-stats__approx {
  margin-right: .18em;
  margin-left: 0;
  font-size: .28em;
  letter-spacing: .05em;
}

.portal-stats dd {
  max-width: 18rem;
  margin: 1.5rem 0 0;
  color: var(--portal-graphite);
  font-size: .92rem;
  line-height: 1.75;
}

.portal-issues {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0 0;
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.portal-issues li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .4rem 1rem;
  min-height: 10rem;
  padding: 1.8rem;
  background: rgba(248, 248, 247, .78);
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  backdrop-filter: blur(14px);
}

.portal-issues span {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
}

.portal-issues strong {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 600;
}

.portal-issues p {
  max-width: 29rem;
  margin: 0;
  color: var(--portal-muted);
  font-size: .9rem;
  line-height: 1.75;
}

.portal-approach {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.portal-approach .portal-section__intro--split {
  grid-template-columns: minmax(0, 2fr) minmax(18rem, .65fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.portal-approach .portal-title {
  font-size: clamp(3rem, 4.2vw, 4.7rem);
}

.portal-approach .portal-title span {
  white-space: nowrap;
}

.portal-approach__visual {
  position: relative;
  z-index: 1;
  width: 100vw;
  aspect-ratio: 16 / 6.3;
  margin: clamp(-21rem, -17vw, -14rem) 0 clamp(3rem, 6vw, 6rem) calc(50% - 50vw);
  overflow: hidden;
  background: url("../assets/img/portal-03-flow.jpg") center 58% / cover no-repeat;
  border-block: 1px solid var(--portal-line-light);
}

.portal-approach__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .48) 18%, rgba(255, 255, 255, .08) 42%, transparent 54%, rgba(255, 255, 255, .16) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .46), transparent 22%, transparent 80%, rgba(255, 255, 255, .32));
}

.portal-shifts {
  margin: 0;
  border-top: 1px solid var(--portal-ink);
}

.portal-shifts > li {
  display: grid;
  grid-template-columns: .55fr 1fr 1.15fr;
  border-bottom: 1px solid var(--portal-line);
}

.portal-shifts > li > * {
  min-height: 10.5rem;
  padding: 2rem clamp(1.2rem, 2.5vw, 2.5rem);
}

.portal-shifts > li > * + * {
  border-left: 1px solid var(--portal-line);
}

.portal-shifts__index,
.portal-shifts span {
  color: var(--portal-muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-shifts > li > div p {
  max-width: 24rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.55;
}

.portal-shifts__to {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, rgba(93, 143, 242, .08), rgba(236, 86, 173, .12), rgba(245, 165, 141, .08));
}

.portal-shifts__to::after {
  position: absolute;
  top: 0;
  right: 0;
  width: .3rem;
  height: 100%;
  content: "";
  background: var(--portal-gradient);
}

.portal-shifts__to strong {
  font-weight: 700;
}

.portal-services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8ff 0%, #faf9fc 48%, #fff4f9 100%);
}

.portal-services__visual {
  position: relative;
  z-index: 1;
  width: 100vw;
  aspect-ratio: 16 / 6.5;
  margin: -8rem 0 -16rem calc(50% - 50vw);
  background: url("../assets/img/portal-02-burst.jpg") center 56% / cover no-repeat;
}

.portal-services__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(249, 249, 250, .9) 0%, rgba(249, 249, 250, .24) 28%, transparent 58%, rgba(249, 249, 250, .2) 100%),
    linear-gradient(90deg, rgba(249, 249, 250, .4), transparent 20%, transparent 80%, rgba(249, 249, 250, .38));
}

.portal-service-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.portal-service-card {
  position: relative;
  overflow: hidden;
  min-height: 31rem;
  padding: clamp(1.6rem, 3vw, 2.75rem);
  color: var(--portal-ink);
  background: rgba(255, 255, 255, .8);
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}

.portal-service-card:hover {
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 .22rem 0 rgba(93, 143, 242, .72), 0 1.25rem 3rem rgba(67, 75, 105, .1);
}

.portal-service-card--active {
  background: linear-gradient(135deg, rgba(221, 232, 255, .9), rgba(255, 255, 255, .92) 48%, rgba(255, 231, 245, .88));
  box-shadow: inset 0 .22rem 0 rgba(236, 86, 173, .72);
}

.portal-service-card--active:hover {
  background: linear-gradient(135deg, rgba(214, 228, 255, .96), rgba(255, 255, 255, .96) 48%, rgba(255, 224, 242, .94));
  box-shadow: inset 0 .22rem 0 rgba(236, 86, 173, .86), 0 1.25rem 3rem rgba(89, 72, 117, .1);
}

.portal-service-card__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portal-service-card__role {
  margin: 5.5rem 0 1.1rem;
  color: var(--portal-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.portal-service-card--active .portal-service-card__role,
.portal-service-card:hover .portal-service-card__role {
  color: var(--portal-graphite);
}

.portal-service-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.portal-service-card > p:last-child {
  max-width: 24rem;
  margin: 2rem 0 0;
  color: var(--portal-muted);
  font-size: .95rem;
  line-height: 1.9;
}

.portal-service-card--active > p:last-child,
.portal-service-card:hover > p:last-child {
  color: var(--portal-muted);
}

.portal-products {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8ff 0%, #fff 48%, #fff3f8 100%);
}

.portal-product-flow {
  position: relative;
  z-index: 1;
  width: 100vw;
  aspect-ratio: 16 / 6.2;
  margin: -7rem 0 -10rem calc(50% - 50vw);
  background: url("../assets/img/portal-03-flow.jpg") center 58% / cover no-repeat;
  border-block: 1px solid var(--portal-line-light);
}

.portal-product-flow::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .32) 28%, transparent 58%, rgba(255, 255, 255, .18) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .42), transparent 20%, transparent 80%, rgba(255, 255, 255, .34));
}

.portal-product-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.portal-product-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, .76);
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  backdrop-filter: blur(22px) saturate(1.16);
}

.portal-product-group__header {
  min-height: 16rem;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  background: linear-gradient(145deg, rgba(221, 232, 255, .72), rgba(255, 255, 255, .78));
  border-bottom: 1px solid var(--portal-line);
}

.portal-product-group:nth-child(2) .portal-product-group__header {
  background: linear-gradient(145deg, rgba(230, 224, 255, .72), rgba(255, 238, 247, .72));
}

.portal-product-group:nth-child(3) .portal-product-group__header {
  background: linear-gradient(145deg, rgba(255, 231, 245, .72), rgba(255, 241, 229, .74));
}

.portal-product-group__header > p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-product-group__header > span {
  display: block;
  margin-top: 3rem;
  color: var(--portal-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.portal-product-group__header h3 {
  margin: .8rem 0 0;
  font-size: clamp(2rem, 2.7vw, 2.85rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.portal-product-group__cards {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(2, minmax(23rem, 1fr));
}

.portal-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 23rem;
  padding: clamp(1.35rem, 2.4vw, 2.3rem);
  transition: background .3s ease, box-shadow .3s ease;
}

.portal-product + .portal-product {
  border-top: 1px solid var(--portal-line);
}

.portal-product:hover {
  background: linear-gradient(140deg, rgba(93, 143, 242, .08), rgba(236, 86, 173, .11), rgba(245, 165, 141, .09));
  box-shadow: inset 0 .2rem 0 rgba(141, 108, 231, .58);
}

.portal-product > p:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-product > p:first-child b {
  font-weight: 500;
}

.portal-product h4 {
  margin: auto 0 1rem;
  font-size: clamp(1.85rem, 2.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}

.portal-product > strong {
  font-size: .82rem;
  letter-spacing: .02em;
}

.portal-product > p:nth-of-type(2) {
  max-width: 31rem;
  margin: 1.2rem 0 0;
  color: var(--portal-muted);
  font-size: .88rem;
  line-height: 1.75;
}

.portal-product small {
  margin-top: 1.5rem;
  color: var(--portal-muted);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.portal-proof {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(248, 248, 247, .98) 0%, rgba(248, 248, 247, .93) 45%, rgba(248, 248, 247, .2) 72%, transparent 100%),
    url("../assets/img/portal-05-surge.jpg") right bottom / cover no-repeat,
    var(--portal-paper);
}

.portal-proof__intro {
  max-width: 66rem;
}

.portal-proof__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.portal-cases,
.portal-reasons {
  margin: 0;
  background: rgba(255, 255, 255, .78);
  border-top: 1px solid var(--portal-ink);
  backdrop-filter: blur(16px);
}

.portal-cases li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-cases li > span,
.portal-reasons li > span {
  padding-top: .25rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .13em;
}

.portal-cases strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.portal-cases p {
  margin: .55rem 0 0;
  color: var(--portal-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.portal-reasons {
  display: flex;
  flex-direction: column;
}

.portal-reasons li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  flex: 1;
  align-items: center;
  min-height: 8.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--portal-line);
}

.portal-reasons p {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.55;
}

.portal-reasons strong {
  font-weight: 700;
}

.portal-vision {
  position: relative;
  padding-block: clamp(5rem, 9vw, 9rem);
  color: #fff;
  overflow: hidden;
  background: var(--portal-ink);
}

.portal-vision::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .16;
  background: url("../assets/img/portal-02-burst.jpg") center / cover no-repeat;
  mix-blend-mode: screen;
}

.portal-vision__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .65fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.portal-vision .portal-eyebrow {
  color: rgba(255, 255, 255, .72);
}

.portal-vision h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.06em;
}

.portal-vision__inner > p {
  margin: 0 0 .5rem;
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  line-height: 1.85;
}

.portal-vision__inner > a {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  min-width: 12rem;
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .62);
  transition: color .25s ease, background .25s ease;
}

.portal-vision__inner > a:hover {
  color: var(--portal-ink);
  background: #fff;
}

.portal-final {
  position: relative;
  min-height: 100svh;
  padding-block: clamp(7rem, 12vw, 12rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 43%, rgba(255, 255, 255, .22) 69%, transparent 100%),
    url("../assets/img/portal-05-surge.jpg") center / cover no-repeat;
}

.portal-final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - clamp(14rem, 24vw, 24rem));
}

.portal-final h2 {
  display: flex;
  flex-direction: column;
  max-width: 76rem;
  margin: 0;
  font-size: clamp(3.5rem, 7.5vw, 8rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.075em;
}

.portal-start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(66rem, 82%);
  margin-top: clamp(3rem, 6vw, 6rem);
  background: rgba(255, 255, 255, .68);
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
  backdrop-filter: blur(18px);
}

.portal-start-grid > div {
  min-height: 12rem;
  padding: 1.5rem;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.portal-start-grid span {
  display: block;
  margin-bottom: 2.3rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.portal-start-grid strong {
  display: block;
  font-size: 1.15rem;
}

.portal-start-grid p {
  margin: .7rem 0 0;
  color: var(--portal-muted);
  font-size: .82rem;
  line-height: 1.7;
}

.portal-final__cta {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  min-width: min(28rem, 100%);
  margin-top: 1.2rem;
  padding: 1.35rem 1.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--portal-ink);
  border: 1px solid var(--portal-ink);
  transition: color .25s ease, background .25s ease;
}

.portal-final__cta:hover {
  color: var(--portal-ink);
  background: rgba(255, 255, 255, .7);
}

.portal-final__cta i {
  font-style: normal;
}

.portal-footer {
  padding: clamp(5rem, 8vw, 8rem) 0 2.5rem;
  color: #fff;
  background: #151515;
}

.portal-footer .portal-eyebrow {
  color: rgba(255, 255, 255, .55);
}

.portal-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.portal-footer__top img {
  width: min(20rem, 62vw);
  height: auto;
}

.portal-footer__top > p {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}

.portal-footer__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.portal-footer__nav a {
  padding: 1.3rem 1rem 1.3rem 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.portal-footer__nav a + a {
  padding-left: 1rem;
}

.portal-footer__nav a:hover {
  color: #b7ccff;
}

.portal-footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.8;
  letter-spacing: .05em;
}

.portal-footer__bottom p {
  margin: 0;
}

.portal-footer__bottom > p:last-child {
  text-align: right;
}

.portal-footer__bottom > div {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.portal-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.portal-footer__bottom a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .65s ease, transform .65s ease;
  }

  .js [data-reveal-stagger] > * {
    transition-delay: calc(var(--si, 0) * 90ms);
  }

  .js [data-reveal].is-revealed,
  .js [data-reveal-stagger].is-revealed > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .portal-header__inner {
    grid-template-columns: 1fr auto;
  }

  .portal-header__nav {
    display: none;
  }

  .portal-hero__copy {
    width: min(50rem, 76%);
  }

  .portal-product-grid {
    grid-template-columns: 1fr;
  }

  .portal-product-group__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .portal-product + .portal-product {
    border-top: 0;
    border-left: 1px solid var(--portal-line);
  }

  .portal-vision__inner {
    grid-template-columns: 1.2fr .8fr;
  }

  .portal-vision__inner > a {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  body {
    background: var(--portal-paper);
  }

  .portal-header__inner {
    min-height: 4.25rem;
  }

  .portal-header__brand img {
    width: 6.7rem;
  }

  .portal-header__contact {
    padding: .72rem .9rem;
    font-size: .62rem;
  }

  .portal-hero {
    min-height: 48rem;
    padding-top: 4.25rem;
    background-image:
      linear-gradient(180deg, rgba(251, 251, 252, .98) 0%, rgba(251, 251, 252, .82) 54%, rgba(251, 251, 252, .12) 100%),
      url("../assets/img/portal-01-sweeping.jpg");
    background-position: center, 64% center;
  }

  .portal-hero__inner {
    min-height: calc(48rem - 4.25rem);
    justify-content: flex-start;
    padding-top: 5.5rem;
  }

  .portal-hero__copy {
    width: 100%;
  }

  .portal-hero__title {
    font-size: clamp(3.8rem, 17vw, 6rem);
  }

  .portal-hero__lead {
    max-width: 34rem;
    font-size: .94rem;
  }

  .portal-hero__scope {
    right: var(--container-pad);
    left: var(--container-pad);
  }

  .portal-scroll {
    display: none;
  }

  .portal-title {
    font-size: clamp(2.7rem, 11.8vw, 4.3rem);
  }

  .portal-section__intro--split {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portal-approach .portal-section__intro--split {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portal-approach .portal-title {
    font-size: clamp(2.7rem, 11.8vw, 4.3rem);
  }

  .portal-approach .portal-title span {
    white-space: normal;
  }

  .portal-approach__visual {
    margin-top: -4rem;
  }

  .portal-problem {
    background:
      linear-gradient(180deg, rgba(248, 248, 247, .08), rgba(248, 248, 247, .86) 34%, var(--portal-paper) 64%),
      radial-gradient(circle at 75% 16%, rgba(201, 204, 255, .18), transparent 32%),
      url("../assets/img/portal-04-curtain.jpg") top left / 150% auto no-repeat,
      linear-gradient(135deg, #eef6ff, var(--portal-paper) 68%, #fff2f8);
  }

  .portal-problem__intro {
    width: 100%;
    margin-top: 14rem;
  }

  .portal-problem__intro .portal-title {
    font-size: clamp(2.7rem, 11.8vw, 4.3rem);
  }

  .portal-problem__intro .portal-title span:last-child {
    white-space: normal;
  }

  .portal-stats {
    grid-template-columns: 1fr;
  }

  .portal-stats > div {
    min-height: 0;
  }

  .portal-stats > div + div {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }

  .portal-issues {
    grid-template-columns: 1fr;
  }

  .portal-approach__visual,
  .portal-product-flow {
    aspect-ratio: 16 / 8;
  }

  .portal-product-flow {
    margin-top: -3rem;
    margin-bottom: -4rem;
  }

  .portal-shifts > li {
    grid-template-columns: 1fr 1fr;
  }

  .portal-shifts__index {
    grid-column: 1 / -1;
    min-height: 0 !important;
    padding-block: 1rem !important;
    border-bottom: 1px solid var(--portal-line);
  }

  .portal-shifts > li > div:first-of-type {
    border-left: 0;
  }

  .portal-services__visual {
    width: 120%;
    margin: -2rem -10% -7rem;
  }

  .portal-service-grid {
    grid-template-columns: 1fr;
  }

  .portal-service-card {
    min-height: 23rem;
  }

  .portal-service-card__role {
    margin-top: 3rem;
  }

  .portal-proof__body {
    grid-template-columns: 1fr;
  }

  .portal-vision__inner {
    grid-template-columns: 1fr;
  }

  .portal-vision__inner > a {
    grid-column: auto;
    justify-self: start;
  }

  .portal-start-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .portal-footer__top {
    grid-template-columns: 1fr;
  }

  .portal-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-footer__bottom {
    grid-template-columns: 1fr;
  }

  .portal-footer__bottom > div {
    justify-content: flex-start;
  }

  .portal-footer__bottom > p:last-child {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .portal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portal-button,
  .portal-button--dark {
    width: 100%;
    padding: .85rem .5rem;
    font-size: .78rem;
  }
}

@media (max-width: 560px) {
  .portal-header__brand span {
    display: none;
  }

  .portal-header__contact span {
    display: none;
  }

  .portal-eyebrow {
    margin-bottom: 1.4rem;
    letter-spacing: .14em;
  }

  .portal-hero__inner {
    padding-top: 4rem;
  }

  .portal-hero__title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .portal-hero__title span:nth-child(2) {
    margin-left: 0;
  }

  .portal-actions {
    grid-template-columns: 1fr 1fr;
  }

  .portal-button {
    width: 100%;
  }

  .portal-hero__scope {
    grid-template-columns: 1fr;
    bottom: 1rem;
  }

  .portal-hero__scope div {
    padding-block: .35rem;
  }

  .portal-hero__scope div + div {
    border-top: 1px solid var(--portal-line-light);
  }

  .portal-title {
    font-size: clamp(2.5rem, 12.5vw, 3.6rem);
  }

  .portal-section::after {
    top: 1.2rem;
  }

  .portal-problem__intro {
    margin-top: 10rem;
  }

  .portal-stats dt {
    font-size: 4.5rem;
  }

  .portal-issues li {
    grid-template-columns: 2rem 1fr;
    padding: 1.25rem;
  }

  .portal-approach__visual,
  .portal-product-flow {
    width: calc(100% + var(--container-pad) * 2);
    margin-left: calc(var(--container-pad) * -1);
    aspect-ratio: 4 / 3;
  }

  .portal-shifts > li {
    grid-template-columns: 1fr;
  }

  .portal-shifts > li > div {
    min-height: 8rem;
  }

  .portal-shifts > li > div + div {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }

  .portal-services__visual {
    width: 150%;
    margin-left: -25%;
  }

  .portal-product-grid {
    grid-template-columns: 1fr;
  }

  .portal-product-group__header {
    min-height: 13rem;
  }

  .portal-product-group__header > span {
    margin-top: 2rem;
  }

  .portal-product-group__cards {
    grid-template-columns: 1fr;
  }

  .portal-product + .portal-product {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }

  .portal-product {
    min-height: 22rem;
  }

  .portal-proof {
    background:
      linear-gradient(180deg, rgba(248, 248, 247, .98) 0%, rgba(248, 248, 247, .9) 65%, rgba(248, 248, 247, .28) 100%),
      url("../assets/img/portal-05-surge.jpg") right bottom / auto 58% no-repeat,
      var(--portal-paper);
  }

  .portal-final {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 65%, rgba(255, 255, 255, .15) 100%),
      url("../assets/img/portal-05-surge.jpg") right bottom / auto 60% no-repeat;
  }

  .portal-final h2 {
    font-size: clamp(3.1rem, 14vw, 4.8rem);
  }

  .portal-footer__nav {
    grid-template-columns: 1fr;
  }

  .portal-footer__nav a,
  .portal-footer__nav a + a {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
}
