main {
  background-color: #030715;
  background-image: none;
}

html,
body {
  overflow-x: clip;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--site-viewport-height);
  bottom: 0;
  z-index: 0;
  display: none !important;
  pointer-events: none;
  background-image: none !important;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  -webkit-mask-image: none;
  mask-image: none;
}

main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--third-background-start, 100%);
  bottom: 0;
  z-index: 0;
  display: none !important;
  pointer-events: none;
  background-image: none !important;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  -webkit-mask-image: none;
  mask-image: none;
}

body.has-third-background main::after {
  display: none !important;
}

.hero {
  background-color: #030715;
  background-image: url("./assets/hero-background-no-old-cube-hq-wmBqmafa.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.hero::before {
  inset: 2px 0 2px 2px;
  border-right: 2px solid rgba(80, 134, 255, 0.98);
  background: transparent;
  box-shadow:
    inset 0 0 12px rgba(84, 139, 255, 0.72),
    inset 0 0 24px rgba(119, 108, 226, 0.28),
    0 0 8px rgba(91, 145, 255, 0.98),
    0 0 22px rgba(71, 126, 255, 0.7),
    0 0 42px rgba(129, 118, 219, 0.38);
}

.section:not(.hero),
.site-footer {
  position: relative;
  isolation: isolate;
  background-color: #030715;
}

.section:not(.hero)::before,
.site-footer::before {
  inset: -1px 0;
  background-image:
    linear-gradient(rgba(3, 7, 21, 0.32), rgba(3, 7, 21, 0.32)),
    linear-gradient(90deg, rgba(3, 7, 21, 0.68) 0%, rgba(3, 7, 21, 0.28) 34%, rgba(3, 7, 21, 0.34) 66%, rgba(3, 7, 21, 0.68) 100%),
    linear-gradient(180deg, rgba(3, 7, 21, 0.48) 0%, rgba(3, 7, 21, 0.1) 24%, rgba(3, 7, 21, 0.16) 72%, rgba(3, 7, 21, 0.56) 100%),
    var(--section-bg);
  background-repeat: no-repeat;
  background-position: var(--section-bg-position, center center);
  background-size: cover;
  opacity: 1;
}

.section:not(.hero)::after,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.section:not(.hero)::after {
  display: none;
}

.site-footer::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 21, 0.22) 0%, transparent 52%, rgba(3, 7, 21, 0.18) 100%);
}

#how {
  --section-bg: url("./assets/section-bg-flow-calm.webp");
  --section-bg-position: center 46%;
  --next-section-bg: url("./assets/section-bg-flow-wave.webp");
  --next-section-bg-position: center top;
}

#value {
  --section-bg: url("./assets/section-bg-flow-wave.webp");
  --section-bg-position: center 52%;
  --next-section-bg: url("./assets/section-bg-flow-orbit.webp");
  --next-section-bg-position: center top;
}

#directions {
  --section-bg: url("./assets/section-bg-flow-infinity.webp");
  --section-bg-position: center 50%;
  --next-section-bg: url("./assets/section-bg-flow-infinity.webp");
  --next-section-bg-position: center top;
}

#about {
  --section-bg: url("./assets/section-bg-flow-orbit.webp");
  --section-bg-position: center 50%;
  --next-section-bg: url("./assets/section-bg-flow-vortex.webp");
  --next-section-bg-position: center top;
}

#team {
  --section-bg: url("./assets/section-bg-flow-vortex.webp");
  --section-bg-position: center 48%;
  --next-section-bg: url("./assets/section-bg-flow-wave.webp");
  --next-section-bg-position: center top;
}

#faq {
  --section-bg: url("./assets/section-bg-flow-wave.webp");
  --section-bg-position: center 52%;
  --next-section-bg: url("./assets/section-bg-flow-calm.webp");
  --next-section-bg-position: center top;
}

#contact {
  --section-bg: url("./assets/section-bg-flow-calm.webp");
  --section-bg-position: center 44%;
}

@media (max-width: 900px) {
  .hero::after {
    background-image: url("./assets/hero-cube-replacement-lines-7nJAzGJU-mobile-800.webp");
  }

  #how,
  #contact {
    --section-bg: url("./assets/section-bg-flow-calm-mobile-960.webp");
  }

  #value,
  #faq {
    --section-bg: url("./assets/section-bg-flow-wave-mobile-960.webp");
  }

  #directions {
    --section-bg: url("./assets/section-bg-flow-infinity-mobile-960.webp");
  }

  #about {
    --section-bg: url("./assets/section-bg-flow-orbit-mobile-960.webp");
  }

  #team {
    --section-bg: url("./assets/section-bg-flow-vortex-mobile-960.webp");
  }
}

#faq .faq-item {
  background: rgba(3, 7, 21, 0.48);
}

#faq .faq-item.is-open {
  background: rgba(3, 7, 21, 0.58);
}

.site-footer {
  --section-bg: linear-gradient(#070a18, #070a18);
  --section-bg-position: center center;
  background-color: #070a18;
}

.site-footer::before {
  background: #070a18;
}

.site-footer::after {
  display: none;
}

.footer-to-top {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(167, 157, 240, 0.82);
  border-radius: 50%;
  color: var(--lilac-soft);
  background: rgba(129, 118, 219, 0.12);
  box-shadow:
    0 0 18px rgba(129, 118, 219, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.1);
  transition:
    transform var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.footer-to-top svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-soft);
}

.footer-to-top:hover,
.footer-to-top:focus-visible {
  color: #fff;
  border-color: var(--lilac-soft);
  background: rgba(129, 118, 219, 0.28);
  box-shadow:
    0 0 24px rgba(129, 118, 219, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.footer-to-top:focus-visible {
  outline: 2px solid rgba(234, 228, 215, 0.9);
  outline-offset: 3px;
}

.footer-to-top:active {
  transform: translateY(-1px);
}

.footer-to-top:hover svg,
.footer-to-top:focus-visible svg {
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .footer-to-top {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .footer-to-top svg {
    width: 27px;
    height: 27px;
  }
}

@media (min-width: 901px) {
  :root {
    --site-browser-scale: 0.75;
    --section-content-scale: 1.25;
  }

  .work-process-section .format-block {
    margin-top: max(
      calc(clamp(170px, 13.4vw, 220px) + 260px),
      calc(var(--site-viewport-height) / 2 - 230px)
    );
    margin-bottom: 170px;
  }

  html::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 1000;
    width: 2px;
    height: calc(100vh - 4px);
    pointer-events: none;
    background: rgba(80, 134, 255, 0.98);
    box-shadow:
      0 0 8px rgba(91, 145, 255, 0.98),
      0 0 22px rgba(71, 126, 255, 0.7),
      0 0 42px rgba(129, 118, 219, 0.38);
  }

  .hero::before {
    right: 2px;
    border-right: 0;
  }

  .hero::after {
    bottom: 0;
    height: auto;
    aspect-ratio: auto;
    background-size: 100% 100%;
  }

  .hero-copy.is-visible {
    transform: scale(1.42);
    transform-origin: top left;
  }

  .hero-copy > .eyebrow,
  .hero-copy > .hero-subtitle,
  .hero-copy > .hero-actions,
  .hero-copy > .hero-stairs {
    margin-left: -12px;
  }

  .hero-stairs {
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: max-content;
    max-width: calc(var(--site-viewport-width) - 120px);
    margin-top: clamp(72px, 7.6vh, 96px);
    font-size: clamp(22px, 1.9vw, 29px);
    line-height: 1;
    white-space: nowrap;
  }

  .hero-stairs span {
    display: inline-flex;
    align-items: center;
    color: var(--lilac-soft);
  }

  .hero-stairs span:nth-child(2),
  .hero-stairs span:nth-child(3) {
    margin-left: 0;
  }

  .hero-stairs span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 0.18em;
    height: 0.18em;
    margin: 0 clamp(11px, 0.95vw, 17px);
    border-radius: 999px;
    background: var(--text-on-dark);
    box-shadow: 0 0 10px rgba(234, 228, 215, 0.3);
  }

  #value,
  #directions,
  #about,
  #team,
  #faq,
  #contact {
    min-height: var(--site-viewport-height);
    display: flex;
    align-items: center;
    padding-top: clamp(120px, 9vh, 150px);
    padding-bottom: clamp(120px, 10vh, 160px);
  }

  .work-process-section .section-head {
    scale: var(--section-content-scale);
    transform-origin: center bottom;
  }

  .work-process-section .process-road {
    scale: var(--section-content-scale);
    transform-origin: center top;
  }

  .work-process-section .format-block,
  .directions-block,
  #about .model-comparison,
  #faq .faq-layout,
  #contact .contact-launch {
    scale: var(--section-content-scale);
    transform-origin: center;
  }

  #value .section-head,
  #value .audience-tabs,
  #value .audience-panels,
  #team .section-head,
  #team .team-grid {
    scale: var(--section-content-scale);
    transform-origin: center;
  }

  #value .section-head,
  #team .section-head {
    transform-origin: center bottom;
  }

  #value .audience-panels,
  #team .team-grid {
    transform-origin: center top;
  }

  #value > .container {
    translate: 0 20px;
  }

  #team .team-grid {
    translate: 9px 0;
  }

  #about .model-comparison {
    translate: 0 42px;
  }

  #value .audience-tabs {
    align-items: stretch;
    overflow: hidden;
  }

  #value .audience-tabs__indicator {
    display: none !important;
  }

  #value .audience-tabs button {
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  #value .audience-tabs button.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--lilac-soft), var(--lilac));
    box-shadow: 0 12px 28px -10px rgba(129, 118, 219, 0.86), inset 0 1px rgba(255, 255, 255, 0.24);
  }

  #value .audience-panel li::before {
    content: "+";
    top: 0.08em;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--lilac);
    font-family: var(--font-body);
    font-size: 1.18em;
    font-weight: 700;
    line-height: 1;
  }

  #contact {
    padding-bottom: clamp(150px, 13vh, 190px);
  }

  #contact .contact-launch {
    transform: translateY(calc(clamp(92px, 10vh, 112px) + 128px));
  }

  .footer-layout {
    transform: translateY(calc(128px - clamp(128px, 16vh, 168px)));
  }
}

@media (max-width: 720px) {
  :root {
    --text-on-dark-muted: rgba(234, 228, 215, 0.78);
  }

  html {
    scroll-behavior: auto;
    scroll-padding-top: 56px;
  }

  body {
    line-height: 1.6;
  }

  .site-header {
    top: 4px;
    right: 0;
    left: 0;
    width: auto;
    height: 50px;
  }

  .site-header::before {
    display: none;
  }

  .site-header__inner {
    justify-content: flex-end;
    width: auto;
    height: 46px;
    margin-right: 8px;
    margin-left: 8px;
    padding: 0;
  }

  .logo-link {
    display: none;
  }

  .hero {
    min-height: 100svh;
    background-image: linear-gradient(180deg, #050a1c 0%, #030715 58%, #020511 100%);
    background-position: center;
    background-size: 100% 100%;
  }

  .hero::after {
    top: -40px;
    right: -105vw;
    width: 148vw;
  }

  .section:not(.hero)::before {
    --mobile-section-bg-height: clamp(720px, 100svh, 920px);
    background-position:
      center center,
      center center,
      center center,
      center center;
    background-size:
      100% 100%,
      100% 100%,
      100% 100%,
      auto var(--mobile-section-bg-height);
  }

  .site-nav {
    inset: 54px 0 0;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
    margin-left: 0;
    padding: 22px 18px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav a:nth-child(n) {
    flex: 0 0 46px;
    width: 180px;
    min-height: 46px;
    max-height: 46px;
    padding: 0 12px;
    border-color: transparent;
    border-radius: 12px;
    background: #070914;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    font-size: 18px;
    line-height: 1.2;
  }

  .site-nav a:nth-child(n):not(.is-active) {
    border-color: rgba(167, 157, 240, 0.42);
    box-shadow:
      0 0 0 1px rgba(129, 118, 219, 0.06),
      0 8px 20px rgba(0, 0, 0, 0.26),
      0 0 12px rgba(129, 118, 219, 0.08);
  }

  .site-nav a:nth-child(n).is-active {
    border-color: transparent;
  }

  .site-nav a:nth-child(n)::before {
    border-radius: inherit;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(174, 160, 255, 0.82);
    border-radius: 50%;
    background: rgba(5, 7, 18, 0.92);
    box-shadow:
      0 0 16px rgba(129, 118, 219, 0.34),
      inset 0 1px rgba(255, 255, 255, 0.08);
  }

  .menu-toggle__box {
    width: 19px;
  }

  .menu-toggle > span:last-child {
    display: none;
  }

  .hero-layout {
    align-self: stretch;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 14px 14px 0 24px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy > .eyebrow,
  .hero-copy > .hero-subtitle,
  .hero-copy > .hero-actions,
  .hero-copy > .hero-stairs {
    margin-left: 3px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.3;
  }

  .hero-wordmark {
    width: min(100%, 340px);
    margin-left: 0;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    max-width: 25ch;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 0;
  }

  .hero-actions .button {
    width: min(158px, calc((100% - 8px) / 2));
    max-width: 100%;
    min-height: 44px;
    padding: 8px 5px;
    font-size: clamp(14px, 4.45vw, 16px);
  }

  .hero-stairs {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    max-width: 100%;
    margin-top: 22px;
    font-size: clamp(12.5px, 3.98vw, 15.5px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-stairs span {
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important;
    white-space: nowrap;
  }

  .hero-stairs span:not(:last-child)::after {
    content: "";
    flex: 0 0 auto;
    width: 3.5px;
    height: 3.5px;
    margin: 0 3px;
    border-radius: 50%;
    background: var(--text-on-dark);
    box-shadow: 0 0 8px rgba(234, 228, 215, 0.28);
  }

  .work-process-section {
    padding: 84px 0 88px;
  }

  #value,
  #directions,
  #about,
  #team,
  #faq,
  #contact {
    padding-top: 76px;
    padding-bottom: 88px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .work-process-section .section-head {
    margin-bottom: 28px;
  }

  .work-process-section .section-head h2,
  #value .section-head h2,
  .directions-block h2,
  .model-comparison-title,
  #team .section-head h2,
  #faq .section-head h2 {
    margin-bottom: 20px;
    font-size: 42px;
    line-height: 0.95;
  }

  .work-process-section .section-head p,
  .section-head p,
  .directions-block > p {
    font-size: 16px;
    line-height: 1.62;
    color: rgba(234, 228, 215, 0.78);
  }

  .process-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 7px 14px;
    padding: 20px 0;
  }

  .process-step__number {
    font-size: 26px;
  }

  .process-step h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .process-step p {
    font-size: 16px;
    line-height: 1.58;
  }

  .work-process-section .format-block {
    margin-top: 62px;
  }

  .foundation-diagram > svg {
    display: none;
  }

  .foundation-core {
    width: 100%;
    min-height: 0;
    margin-bottom: 4px;
    padding: 8px 12px 22px;
  }

  .foundation-core__caption {
    width: 100%;
    font-size: 14px;
    white-space: normal;
  }

  .foundation-core .foundation-core__caption {
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .foundation-core__logo-frame {
    width: 240px;
    height: 72px;
  }

  .foundation-diagram__cards {
    gap: 14px;
  }

  .foundation-path {
    align-items: flex-start;
    padding: 22px 18px;
    border-radius: 18px;
    text-align: left;
  }

  .foundation-path__index {
    font-size: 22px;
  }

  .foundation-path h4 {
    margin: 9px 0 12px;
    font-size: 26px;
  }

  .foundation-path p,
  .foundation-path .lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .foundation-path .lead {
    margin-top: 16px;
    white-space: normal;
  }

  #value .audience-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 14px;
  }

  #value .audience-tabs button {
    width: 100%;
    min-height: 34px;
    padding: 5px 6px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.15;
    white-space: normal;
  }

  #value .audience-panel {
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(7, 10, 21, 0.78);
  }

  #value .audience-panel h3 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1;
  }

  #value .audience-panel .accent-line {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  #value .audience-panel p,
  #value .audience-panel li,
  #value .audience-panel .result-line {
    font-size: 13.5px;
    line-height: 1.45;
  }

  #value {
    padding-top: 54px;
    padding-bottom: 28px;
    overflow-anchor: none;
  }

  #value::before {
    background-position:
      center center,
      center center,
      center center,
      center top;
  }

  #value .audience-tabs,
  #value .audience-panel {
    overflow-anchor: none;
  }

  #value .section-head {
    margin-bottom: 12px;
  }

  #value .section-head h2 {
    margin-bottom: 10px;
    font-size: 37px;
    line-height: 0.93;
  }

  #value .section-head p {
    font-size: 13px;
    line-height: 1.4;
  }

  #value .audience-panel h4 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.2;
  }

  #value .audience-panel ul {
    gap: 5px;
    margin-bottom: 8px;
  }

  #value .audience-panel li {
    padding-left: 18px;
  }

  #value .audience-panel li::before {
    content: "+";
    top: 0.06em;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--lilac-soft);
    font-family: var(--font-body);
    font-size: 1.12em;
    font-weight: 700;
    line-height: 1;
  }

  #value .audience-panel .result-line {
    padding-top: 8px;
  }

  #directions {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  #directions .directions-block h2 {
    margin-bottom: 10px;
    font-size: 37px;
    line-height: 0.93;
  }

  #directions .directions-block > p {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
  }

  .directions-focus__grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }

  .directions-focus__row {
    display: grid;
    gap: 5px;
    width: 100%;
  }

  .directions-focus__row:nth-child(1) {
    grid-template-columns: 1.2fr 1fr 1fr 0.88fr;
  }

  .directions-focus__row:nth-child(2) {
    grid-template-columns: 0.62fr 1.25fr 0.72fr 1.31fr;
  }

  .directions-focus__grid article,
  .directions-focus__grid article:nth-child(n),
  .directions-focus__row:nth-child(n) article:nth-child(n) {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 4px;
    border-radius: 11px;
    font-size: clamp(10px, 2.75vw, 11.5px);
    line-height: 1.15;
    white-space: normal;
  }

  .directions-focus__row:nth-child(3) {
    display: flex;
  }

  .directions-focus__row:nth-child(3) article {
    width: max-content !important;
    max-width: 100%;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .model-comparison-title {
    margin-bottom: 30px;
  }

  #about .model-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(234, 228, 215, 0.16);
    border-radius: 14px;
    background: rgba(7, 10, 21, 0.76);
  }

  #about .model-table {
    display: table;
    width: 100%;
    border-spacing: 0;
    table-layout: fixed;
  }

  #about .model-table colgroup {
    display: table-column-group;
  }

  #about .model-table col:nth-child(1) {
    width: 29%;
  }

  #about .model-table col:nth-child(2) {
    width: 31%;
  }

  #about .model-table col:nth-child(3) {
    width: 40%;
  }

  #about .model-table thead {
    display: table-header-group;
  }

  #about .model-table tbody {
    display: table-row-group;
  }

  #about .model-table tr {
    display: table-row;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  #about .model-table th,
  #about .model-table td {
    display: table-cell;
    width: auto;
    padding: 10px 6px;
    border: 0 !important;
    border-right: 1px solid rgba(234, 228, 215, 0.11) !important;
    border-bottom: 1px solid rgba(234, 228, 215, 0.11) !important;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.38;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  #about .model-table th {
    padding-top: 9px;
    padding-bottom: 9px;
    background: rgba(129, 118, 219, 0.12);
    color: var(--lilac-soft);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  #about .model-table td:first-child {
    padding: 10px 6px;
    font-size: 12.5px;
    font-weight: 700;
  }

  #about .model-table th:last-child,
  #about .model-table td:last-child {
    border-right: 0 !important;
  }

  #about .model-table tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  #about .model-table td::before {
    content: none;
    display: none;
  }

  #about .model-table__highlight {
    border: 0;
    background: transparent;
  }

  #about .model-table__highlight td {
    background: linear-gradient(160deg, rgba(62, 55, 116, 0.72), rgba(16, 18, 39, 0.92));
    color: var(--ivory-soft);
  }

  #team .team-grid {
    gap: 14px;
  }

  #team .team-card {
    grid-template-areas:
      "photo body"
      "expertise expertise";
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 12px 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(7, 10, 21, 0.8);
  }

  #team .photo-placeholder {
    width: 96px;
    max-width: none;
    min-height: 0;
    height: 128px;
    margin: 0;
  }

  #team .team-card__body h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.08;
  }

  #team .team-role {
    margin-bottom: 9px;
    padding-bottom: 5px;
    font-size: 12.5px;
  }

  #team .team-card__body p:not(.team-role) {
    margin-bottom: 0;
    font-size: 13.5px;
    line-height: 1.48;
  }

  #team .team-expertise {
    padding-top: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    white-space: normal;
  }

  #faq .faq-layout {
    gap: 14px;
  }

  #faq .section-head {
    margin-bottom: 0;
  }

  #faq {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  #faq .section-head h2 {
    margin-bottom: 0;
    font-size: 37px;
    line-height: 0.93;
  }

  #faq .faq-list {
    gap: 8px;
  }

  #faq .faq-item {
    border-radius: 12px;
  }

  #faq .faq-item button {
    min-height: 52px;
    gap: 10px;
    padding: 13px 14px;
    font-size: 15px;
    line-height: 1.28;
  }

  #faq .faq-item b {
    width: 20px;
    height: 20px;
  }

  #faq .faq-answer {
    padding: 0 14px 14px;
  }

  #faq .faq-answer p {
    font-size: 14px;
    line-height: 1.48;
  }

  #contact .contact-launch h2 {
    margin-bottom: 22px;
    font-size: 44px;
    line-height: 0.96;
  }

  #contact .contact-launch {
    position: relative;
    left: -6px;
  }

  #contact .contact-launch__lead {
    margin-bottom: 30px;
    color: rgba(234, 228, 215, 0.8);
    font-size: 16px;
    line-height: 1.62;
  }

  #contact .contact-launch__actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  #contact .contact-launch__button,
  #contact .contact-launch__email {
    width: max-content;
    max-width: 100%;
    min-height: 42px;
    padding: 7px;
    gap: 5px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  #contact .contact-launch__icon,
  #contact .contact-launch__max {
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  #contact .contact-launch__icon svg,
  #contact .contact-launch__max svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .site-footer {
    padding: 18px 0 24px;
  }

  .footer-layout {
    width: calc(100% - 16px);
    min-height: 46px;
    height: 46px;
    margin-right: 8px;
    margin-left: 8px;
    padding: 0 12px;
    gap: 12px;
    border-radius: 16px;
  }

  .footer-to-top {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .footer-to-top svg {
    width: 21px;
    height: 21px;
  }

  .footer-layout p {
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 100svh;
  }

  .hero-layout {
    min-height: 100svh;
    padding-right: 14px;
    padding-left: 20px;
  }

  .eyebrow {
    font-size: 15.5px;
  }

  .hero-actions .button {
    font-size: clamp(14px, 4.45vw, 16px);
  }

  #value {
    padding-top: 46px;
    padding-bottom: 20px;
  }

  #value .section-head {
    margin-bottom: 10px;
  }

  #value .section-head h2 {
    margin-bottom: 8px;
    font-size: 35px;
    line-height: 0.92;
  }

  #value .section-head p {
    font-size: 12px;
    line-height: 1.34;
  }

  #value .audience-tabs {
    gap: 3px;
    margin-bottom: 8px;
    padding: 3px;
  }

  #value .audience-tabs button {
    min-height: 30px;
    padding: 4px 5px;
    font-size: 12px;
  }

  #value .audience-panel {
    gap: 10px;
    padding: 12px;
  }

  #value .audience-panel h3 {
    margin-bottom: 7px;
    font-size: 22px;
  }

  #value .audience-panel .accent-line {
    margin-bottom: 7px;
    font-size: 13.5px;
  }

  #value .audience-panel p,
  #value .audience-panel li,
  #value .audience-panel .result-line {
    font-size: 13px;
    line-height: 1.4;
  }

  #value .audience-panel h4 {
    margin-bottom: 7px;
    font-size: 13.5px;
  }

  #value .audience-panel ul {
    gap: 4px;
    margin-bottom: 6px;
  }

  #value .audience-panel .result-line {
    padding-top: 6px;
  }

  #team .team-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
  }

  #team .photo-placeholder {
    width: 88px;
    height: 118px;
  }

  #team .team-card__body h3 {
    font-size: 19px;
  }

  #team .team-card__body p:not(.team-role) {
    font-size: 13px;
    line-height: 1.42;
  }

  .work-process-section .section-head h2,
  #value .section-head h2,
  .directions-block h2,
  .model-comparison-title,
  #team .section-head h2,
  #faq .section-head h2 {
    font-size: 40px;
  }

  #contact .contact-launch h2 {
    font-size: 42px;
  }

  #value .section-head h2,
  #directions .directions-block h2,
  #faq .section-head h2 {
    font-size: 35px;
  }

  #directions .directions-block > p {
    font-size: 12px;
    line-height: 1.34;
  }

  .site-nav a:nth-child(n) {
    font-size: 17px;
  }
}

@media (max-width: 340px) {
  .hero-stairs {
    font-size: 12.5px;
  }

  .hero-stairs span:not(:last-child)::after {
    margin-right: 2.5px;
    margin-left: 2.5px;
  }
}

.footer-meta {
  min-width: 0;
  gap: clamp(10px, 1.2vw, 18px);
}

@media (min-width: 901px) {
  #contact {
    overflow: visible;
  }

  #contact::before {
    bottom: -190px;
  }

  .site-footer {
    z-index: 3;
    width: fit-content;
    max-width: calc(var(--site-viewport-width) - 68px);
    margin: 124px auto 30px;
    padding: 10px 14px;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.96), rgba(3, 6, 17, 0.98));
  }

  .site-footer::before {
    inset: 0;
    border-radius: inherit;
    background: transparent;
  }

  .footer-layout {
    --footer-item-gap: clamp(24px, 1.8vw, 30px);
    width: max-content;
    max-width: calc(var(--site-viewport-width) - 68px);
    min-height: 82px;
    margin: 0;
    padding-right: var(--footer-item-gap);
    padding-left: var(--footer-item-gap);
    gap: var(--footer-item-gap);
    transform: none;
  }

  .footer-layout > .footer-meta {
    width: auto;
    flex: 0 1 auto;
    gap: var(--footer-item-gap);
  }
}

.footer-privacy-button,
.footer-contact {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(234, 228, 215, 0.82);
  background: transparent;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.18vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-soft);
}

.footer-contact {
  cursor: default;
}

.footer-privacy-button:hover,
.footer-privacy-button:focus-visible {
  color: var(--lilac-soft);
}

.footer-privacy-button:focus-visible {
  outline: 2px solid rgba(174, 160, 255, 0.88);
  outline-offset: 4px;
}

body.is-privacy-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(1, 3, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.privacy-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  border: 1px solid rgba(174, 160, 255, 0.58);
  border-radius: 8px;
  background: #080b18;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(129, 118, 219, 0.2);
}

.privacy-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(234, 228, 215, 0.12);
  background: #0b0e1d;
}

.privacy-modal__header h2 {
  margin: 0;
  color: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.privacy-modal__close {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(174, 160, 255, 0.68);
  border-radius: 50%;
  color: var(--lilac-soft);
  background: rgba(129, 118, 219, 0.1);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft);
}

.privacy-modal__close span::before,
.privacy-modal__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.privacy-modal__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.privacy-modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.privacy-modal__close:hover,
.privacy-modal__close:focus-visible {
  color: #fff;
  border-color: var(--lilac-soft);
  background: rgba(129, 118, 219, 0.24);
}

.privacy-modal__close:focus-visible {
  outline: 2px solid rgba(234, 228, 215, 0.9);
  outline-offset: 3px;
}

.privacy-modal__scroll {
  min-height: 0;
  padding: 24px 28px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(174, 160, 255, 0.7) rgba(234, 228, 215, 0.06);
  scrollbar-width: thin;
}

.privacy-modal__document {
  max-width: 76ch;
  margin: 0 auto;
  color: rgba(234, 228, 215, 0.84);
}

.privacy-modal__document h3 {
  margin: 28px 0 12px;
  color: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.privacy-modal__document h3:first-child {
  margin-top: 0;
}

.privacy-modal__document p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.privacy-modal__document .privacy-modal__edition {
  margin-bottom: 22px;
  color: var(--lilac-soft);
  font-weight: 700;
}

.privacy-modal__document .privacy-modal__bullet {
  padding-left: 14px;
}

.privacy-modal__status {
  color: rgba(234, 228, 215, 0.72);
}

@media (min-width: 901px) {
  .privacy-modal {
    zoom: 1.3333333333;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 14px 0 18px;
    background-color: #070a18;
  }

  .site-footer::before {
    background: #070a18;
  }

  .footer-layout {
    width: calc(100% - 4px);
    max-width: 400px;
    min-height: 50px;
    height: 50px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 6px;
    padding-left: 6px;
    justify-content: space-between;
    gap: 0;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
      linear-gradient(180deg, rgba(6, 7, 11, 0.99), rgba(2, 3, 7, 0.96));
    box-shadow:
      0 26px 58px -30px rgba(0, 0, 0, 0.98),
      0 0 0 1px rgba(129, 118, 219, 0.58),
      0 0 25px -5px rgb(167, 157, 240),
      0 0 54px -15px rgba(129, 118, 219, 0.98),
      inset 0 1px rgba(255, 255, 255, 0.08),
      inset 0 -1px rgba(167, 157, 240, 0.22);
  }

  .footer-layout > .footer-meta {
    display: contents;
  }

  .footer-layout > .footer-meta > p {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
  }

  .footer-layout > .footer-meta > .footer-privacy-button {
    grid-column: 2;
    grid-row: 1;
    line-height: 1.35;
    white-space: nowrap;
  }

  .footer-layout > .footer-meta > .footer-contact--phone {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-layout > .footer-meta > .footer-contact--email {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-layout p,
  .footer-privacy-button,
  .footer-contact {
    font-size: clamp(5.7px, 1.8vw, 7.2px);
  }

  .footer-to-top {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .footer-to-top svg {
    width: 10px;
    height: 10px;
  }

  .privacy-modal {
    padding: 8px;
  }

  .privacy-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .privacy-modal__header {
    gap: 10px;
    padding: 12px 12px 12px 14px;
  }

  .privacy-modal__header h2 {
    font-size: 18px;
    line-height: 1.22;
  }

  .privacy-modal__close {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .privacy-modal__close span::before,
  .privacy-modal__close span::after {
    width: 16px;
  }

  .privacy-modal__scroll {
    padding: 17px 14px 22px;
  }

  .privacy-modal__document h3 {
    margin: 23px 0 9px;
    font-size: 15px;
    line-height: 1.3;
  }

  .privacy-modal__document p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .privacy-modal__document .privacy-modal__edition {
    margin-bottom: 17px;
  }
}

/* Direction emphasis: CyberSecurity, Sales, and Engineering & DeepTech. */
.directions-focus__row:nth-child(1) article:nth-child(3),
.directions-focus__row:nth-child(2) article:nth-child(2) {
  color: var(--text-on-dark);
  border-color: rgba(234, 228, 215, 0.26);
  background: rgba(20, 21, 26, 0.72);
  box-shadow: inset 0 0 0 1px rgba(234, 228, 215, 0.04);
}

.directions-focus__row:nth-child(1) article:nth-child(3):hover,
.directions-focus__row:nth-child(2) article:nth-child(2):hover {
  color: var(--text-on-dark);
  border-color: var(--lilac-soft);
  background: rgba(129, 118, 219, 0.16);
  box-shadow: 0 18px 34px -24px rgba(129, 118, 219, 0.8);
}

.directions-focus__row:nth-child(1) article:nth-child(1),
.directions-focus__row:nth-child(2) article:nth-child(3),
.directions-focus__row:nth-child(3) article:nth-child(1) {
  color: #fff;
  border-color: rgba(129, 118, 219, 0.82);
  background: linear-gradient(135deg, var(--lilac-soft), var(--lilac));
  box-shadow: 0 20px 42px -24px rgba(129, 118, 219, 0.9);
}

.directions-focus__row:nth-child(1) article:nth-child(1):hover,
.directions-focus__row:nth-child(2) article:nth-child(3):hover,
.directions-focus__row:nth-child(3) article:nth-child(1):hover {
  color: #fff;
  background: linear-gradient(135deg, #b3a9ff, var(--lilac));
}

@media (max-width: 720px) {
  .site-header,
  .site-header:not(.is-scrolled) {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__inner,
  .menu-toggle {
    pointer-events: auto;
  }

  #contact .contact-launch__actions {
    gap: 4px;
    flex-wrap: wrap;
  }

  #contact .contact-launch__button,
  #contact .contact-launch__email {
    padding: 6px;
  }

  .footer-layout {
    display: flex;
    align-items: center;
    width: calc(100% - 8px);
    max-width: none;
    min-height: 36px;
    height: 36px;
    padding: 4px;
    gap: 2px;
    border-radius: 14px;
  }

  .footer-layout > .footer-meta {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 0;
    gap: 2px;
  }

  .footer-layout > .footer-meta > p,
  .footer-layout > .footer-meta > .footer-privacy-button,
  .footer-layout > .footer-meta > .footer-contact {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .footer-layout > .footer-meta > .footer-privacy-button {
    min-height: 24px;
    padding: 0 1px;
    text-align: center;
  }

  .footer-layout p,
  .footer-privacy-button,
  .footer-contact {
    font-size: 6px;
  }

  .footer-to-top {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .footer-to-top svg {
    width: 11px;
    height: 11px;
  }

  .site-footer {
    padding: 8px 0 10px;
  }
}

@media (max-width: 380px) {
  .footer-layout {
    padding: 3px;
    gap: 1px;
  }

  .footer-layout > .footer-meta {
    gap: 1px;
  }

  .footer-layout p,
  .footer-privacy-button,
  .footer-contact {
    font-size: 4.75px;
  }

  .footer-layout > .footer-meta > .footer-privacy-button {
    min-height: 20px;
    padding: 0;
  }

  .footer-to-top {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .footer-to-top svg {
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hero-copy > .eyebrow,
  .hero-copy > .hero-subtitle,
  .hero-copy > .hero-actions,
  .hero-copy > .hero-stairs {
    margin-left: -12px;
  }

  .hero-stairs {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    max-width: 100%;
    margin-top: 34px;
    font-size: clamp(17px, 2.4vw, 19px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-stairs span {
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important;
    white-space: nowrap;
  }

  .hero-stairs span:not(:last-child)::after {
    content: "";
    flex: 0 0 auto;
    width: 4px;
    height: 4px;
    margin: 0 7px;
    border-radius: 50%;
    background: var(--text-on-dark);
    box-shadow: 0 0 8px rgba(234, 228, 215, 0.28);
  }

  #about .model-table-wrap {
    overflow: hidden;
  }

  #about .model-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-spacing: 0 10px;
  }

  #about .model-table thead th {
    padding: 0 14px 10px;
    font-size: clamp(12px, 1.7vw, 14px);
  }

  #about .model-table td {
    padding: 20px 14px;
    font-size: clamp(13px, 1.9vw, 16px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  #about .model-table td:first-child {
    white-space: normal;
  }

  #contact .contact-launch__actions {
    gap: 14px;
    flex-wrap: nowrap;
  }

  #contact .contact-launch__button,
  #contact .contact-launch__email {
    min-height: 64px;
    padding: 14px 20px;
    gap: 10px;
    font-size: 17px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  :root {
    --section-content-scale: 1.18;
  }

  .site-nav a {
    font-size: clamp(21px, 2.1vw, 23px);
  }
}

@media (max-width: 720px) {
  .hero::after {
    display: block;
    top: -48vw;
    right: -58vw;
    width: 112vw;
    opacity: 0.34;
    background-position: center;
    background-size: contain;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hero::after {
    display: block;
    top: -68vw;
    right: -44vw;
    width: 96vw;
    opacity: 0.3;
    background-position: center;
    background-size: contain;
  }
}

/* Portfolio section: integrated with the site's existing section system. */
#portfolio {
  --section-bg: url("./assets/section-bg-flow-infinity.webp");
  --section-bg-position: center 50%;
  --next-section-bg: url("./assets/section-bg-flow-vortex.webp");
  --next-section-bg-position: center top;
}

#portfolio .portfolio-container,
#portfolio .portfolio-content,
#portfolio .portfolio-section__head,
#portfolio .portfolio-grid {
  position: relative;
  z-index: 1;
}

#portfolio .portfolio-content {
  width: var(--aligned-wide-width);
  max-width: none;
  margin-right: auto;
  margin-left: calc((var(--site-viewport-width) - var(--aligned-wide-width)) / 2 - var(--aligned-section-left));
}

#portfolio .portfolio-section__head {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(42px, 5vw, 62px);
}

#portfolio .portfolio-section__head h2 {
  margin: 0;
  font-size: clamp(72px, 9vw, 118px);
  line-height: 0.88;
}

#portfolio .portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.portfolio-project-card {
  --portfolio-pointer-x: 74%;
  --portfolio-pointer-y: 26%;
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 58px;
  overflow: hidden;
  padding: 36px 38px 40px;
  border: 1px solid rgba(234, 228, 215, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(3, 7, 21, 0.94), rgba(3, 7, 21, 0.72)),
    rgba(3, 7, 21, 0.78);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.025);
  color: var(--text-on-dark);
  text-decoration: none;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.portfolio-project-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(
    420px circle at var(--portfolio-pointer-x) var(--portfolio-pointer-y),
    rgba(129, 118, 219, 0.17),
    transparent 68%
  );
  pointer-events: none;
}

.portfolio-project-card::after {
  position: absolute;
  top: 30px;
  right: 32px;
  color: var(--lilac-soft);
  content: "↗";
  font-size: 24px;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-project-card:hover,
.portfolio-project-card:focus-visible {
  border-color: rgba(167, 157, 240, 0.62);
  outline: none;
  background: rgba(9, 11, 29, 0.88);
  box-shadow:
    0 32px 78px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(90, 79, 192, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.portfolio-project-card:hover::after,
.portfolio-project-card:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.portfolio-project-card__direction {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(167, 157, 240, 0.38);
  border-radius: 999px;
  background: rgba(129, 118, 219, 0.08);
  color: var(--lilac-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.portfolio-project-card__identity {
  position: relative;
  z-index: 1;
}

.portfolio-project-card__logo {
  display: block;
  width: min(320px, 82%);
  height: auto;
  margin-bottom: 24px;
}

#portfolio .portfolio-project-card__tagline {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 2.4vw, 40px);
  font-weight: 400;
  line-height: 1.14;
  white-space: nowrap;
}

.footer-portfolio-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(167, 157, 240, 0.66);
  border-radius: 999px;
  background: rgba(129, 118, 219, 0.1);
  color: var(--text-on-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition:
    color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}

.footer-portfolio-link:hover,
.footer-portfolio-link:focus-visible {
  border-color: var(--lilac-soft);
  outline: none;
  background: rgba(129, 118, 219, 0.24);
  color: #fff;
  box-shadow: 0 0 20px rgba(129, 118, 219, 0.3);
  transform: translateY(-2px);
}

.footer-portfolio-link:focus-visible {
  outline: 2px solid rgba(234, 228, 215, 0.9);
  outline-offset: 3px;
}

@media (min-width: 901px) {
  #portfolio {
    display: flex;
    min-height: var(--site-viewport-height);
    align-items: center;
    padding-top: clamp(120px, 9vh, 150px);
    padding-bottom: clamp(120px, 10vh, 160px);
  }

  #portfolio .portfolio-content {
    scale: var(--section-content-scale);
    transform-origin: center;
  }
}

@media (max-width: 900px) {
  #portfolio {
    padding-top: 76px;
    padding-bottom: 88px;
  }

  #portfolio .portfolio-content {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  #portfolio .portfolio-section__head h2 {
    font-size: clamp(44px, 12vw, 74px);
  }

  #portfolio .portfolio-grid {
    grid-template-columns: minmax(0, 620px);
  }
}

@media (max-width: 720px) {
  #portfolio {
    padding-top: 76px;
    padding-bottom: 88px;
  }

  #portfolio .portfolio-section__head {
    margin-bottom: 30px;
  }

  #portfolio .portfolio-section__head h2 {
    font-size: 60px;
    line-height: 0.95;
  }

  #portfolio .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-project-card {
    gap: 46px;
    padding: 24px 21px 25px;
    border-radius: 17px;
  }

  .portfolio-project-card::after {
    top: 19px;
    right: 20px;
    font-size: 19px;
  }

  .portfolio-project-card__direction {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .portfolio-project-card__logo {
    width: min(236px, 86%);
    margin-bottom: 18px;
  }

  #portfolio .portfolio-project-card__tagline {
    font-size: 22px;
  }

  .footer-portfolio-link {
    min-height: 22px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 6px;
  }
}

@media (max-width: 350px) {
  #portfolio .portfolio-project-card__tagline {
    white-space: normal;
  }

  .footer-portfolio-link {
    padding-inline: 3px;
    font-size: 4.75px;
  }
}

/* Floating back-to-top control: follows the visibility of the fixed header. */
body > .footer-to-top {
  position: fixed;
  right: clamp(20px, 2.2vw, 34px);
  bottom: clamp(20px, 2.2vw, 34px);
  z-index: 190;
  display: inline-flex;
  flex: none;
  width: 66px;
  height: 66px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    visibility 0s linear var(--dur-fast);
}

body > .footer-to-top.is-floating-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

body > .footer-to-top svg {
  width: 34px;
  height: 34px;
}

body > .footer-to-top.is-floating-visible:hover,
body > .footer-to-top.is-floating-visible:focus-visible {
  transform: translateY(-3px) scale(1);
}

@media (max-width: 720px) {
  body > .footer-to-top {
    right: 14px;
    bottom: 58px;
    width: 58px;
    height: 58px;
  }

  body > .footer-to-top svg {
    width: 31px;
    height: 31px;
  }
}

/* Temporary visibility switch: keep Portfolio in the source, but hide it from the page and navigation. */
#portfolio,
.site-nav a[href="#portfolio"] {
  display: none !important;
}

/* Keep the comparison content aligned without changing the table itself. */
#about .model-table th,
#about .model-table td {
  text-align: left;
}
