@font-face {
  font-family: "Frigade Atkinson";
  src: url("/newhome-assets/frigade/atkinson.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

.frigade-bento {
  padding: 10px 18px 0;
  background: repeating-linear-gradient(135deg, #fafafa 0 1px, #fff 1px 5px);
  color: #1a233c;
  font-family: "Frigade Atkinson", system-ui, sans-serif;
}

.frigade-bento__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px clamp(24px, 7vw, 100px);
  max-width: 1240px;
  margin: 0 auto 14px;
  padding: clamp(28px, 4.5vw, 60px) clamp(16px, 3vw, 36px) clamp(22px, 3vw, 34px);
  border-bottom: 1px solid #dfe4ef;
  background: linear-gradient(105deg, #f6f7ff, #fff 72%);
}

.frigade-bento__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b43a7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.frigade-bento__eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.frigade-bento__intro h2 {
  max-width: 580px;
  margin: 9px 0 0;
  color: inherit;
  font: 700 clamp(28px, 3.5vw, 44px) / 1.08 "Frigade Atkinson", system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.frigade-bento__intro p {
  max-width: 385px;
  margin: 0;
  color: #495167;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.frigade-bento__rail {
  max-width: 1240px;
  margin-inline: auto;
  border: 1px solid #1b1b1d0d;
  background: #fff;
}

.frigade-bento__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
}

.frigade-bento__card {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1b1b1d0d;
  background: #f8f8fa;
}

.frigade-bento__card:nth-child(-n+2) {
  grid-column: span 3;
}

.frigade-bento__art {
  display: grid;
  height: 200px;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  --bento-play: paused;
}

.frigade-bento__card:nth-child(-n+2) .frigade-bento__art {
  height: 220px;
}

.bento-scene {
  padding: 12px;
  background: repeating-linear-gradient(47deg, transparent 0 46px, rgb(51 65 104 / 3%) 47px, transparent 48px 51px);
  background-position: center;
}

.bento-network {
  position: relative;
  width: min(calc(100% - 36px), 480px);
  height: 86%;
}

.bento-network__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #76aaff;
  stroke-width: 9px;
  filter: drop-shadow(0 4px 9px #81aaff);
  opacity: .66;
}

.bento-network__arc path:first-child {
  filter: blur(3px);
}

.bento-network__signal {
  stroke: #f9fdff;
  stroke-width: 3px;
  stroke-dasharray: 16 84;
  stroke-dashoffset: 58;
}

.bento-network__node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  display: grid;
  width: clamp(32px, 4.2vw, 51px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #dde4ef;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 44%, #eef2f8);
  box-shadow: 0 3px 5px rgb(28 49 92 / 12%);
}

.bento-network__node > :is(img, svg) {
  display: block;
  width: 60%;
  aspect-ratio: 1;
}

.bento-network__node--notion { --node-x: 7%; --node-y: 26%; }
.bento-network__node--asana { --node-x: 18%; --node-y: 52%; }
.bento-network__node--docs { --node-x: 31%; --node-y: 67%; }
.bento-network__node--jira { --node-x: 69%; --node-y: 67%; }
.bento-network__node--drive { --node-x: 82%; --node-y: 52%; }
.bento-network__node--whatsapp { --node-x: 93%; --node-y: 26%; }

.bento-network__node--whatsapp svg {
  border-radius: 50%;
  background: #159b55;
}

.bento-network__node--hub {
  --node-x: 50%;
  --node-y: 72%;
  z-index: 1;
  width: clamp(54px, 7vw, 78px);
  border: 4px solid #fff;
  border-radius: 34%;
  background: linear-gradient(135deg, #5540d2, #111b4d 46%, #75d3f6);
  box-shadow: inset 0 0 0 2px #aabffe, 0 10px 22px rgb(25 48 104 / 23%);
}

.bento-network__node--hub img {
  width: 72%;
  border-radius: 24%;
}

.bento-log,
.bento-guide__panel,
.bento-insight {
  width: min(100%, 444px);
  overflow: hidden;
  border: 1px solid rgb(26 35 60 / 6%);
  border-radius: 12px;
  background: #fbfbfd;
  box-shadow: 0 5px 14px rgb(26 35 60 / 5%);
}

.bento-log {
  background: linear-gradient(115deg, #fbfbfc 30%, #e7f6f2);
  font: 11px / 1.5 ui-monospace, monospace;
}

.bento-log__bar,
.bento-insight__top,
.bento-insight__footer,
.bento-guide__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bento-log__bar {
  padding: 6px 10px;
  border-bottom: 1px solid rgb(26 35 60 / 6%);
  color: #58677f;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bento-log__live {
  white-space: nowrap;
  color: #007f5e;
}

.bento-log__live::before,
.bento-insight__top span:first-child::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  content: "";
}

.bento-log ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 6px 10px 8px;
  list-style: none;
}

.bento-log time { color: #627087; }
.bento-log i { margin-inline: 5px 2px; color: #007f5e; font-style: normal; }
.bento-log li:last-child { font-weight: 700; }

.bento-guide,
.bento-insight,
.bento-handoff {
  width: min(100%, 276px);
  font-size: 11px;
  line-height: 1.4;
}

.bento-guide__panel {
  padding: 9px 11px 0;
  background: #faf9fd;
}

.bento-guide__panel strong,
.bento-handoff__panel strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bento-guide__panel img,
.bento-handoff__panel img {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.bento-guide__message {
  display: grid;
  margin-block: 5px 8px;
}

.bento-guide__message > span {
  grid-area: 1 / 1;
  align-self: center;
}

.bento-guide__prompt {
  opacity: 0;
}

.bento-guide__bar {
  margin-inline: -11px;
  padding: 5px 10px;
  background: #f0edf8;
  color: #565274;
}

.bento-guide__action {
  padding: 3px 7px;
  border-radius: 4px;
  background: #5442c7;
  color: #fff;
}

.bento-guide__chip {
  width: fit-content;
  margin: 12px auto 0;
  padding: 4px 10px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 3px 8px rgb(26 35 60 / 8%);
  font-weight: 700;
}

.bento-guide__chip span {
  margin-right: 5px;
  color: #65748a;
  font-weight: 500;
}

.bento-insight {
  padding: 10px 12px;
  background: linear-gradient(120deg, #fbfbfd 45%, #fbf2e2);
}

.bento-insight__top {
  color: #58677f;
  font-family: ui-monospace, monospace;
}

.bento-insight__top span:first-child::before {
  background: #e58300;
}

.bento-insight__main {
  display: grid;
  grid-template-columns: 1fr minmax(56px, 34%);
  align-items: end;
  gap: 8px;
  margin-block: 5px 8px;
}

.bento-insight__main strong {
  display: block;
  color: #a34e00;
  font: 700 30px / 1 "Frigade Atkinson", system-ui, sans-serif;
}

.bento-insight__main svg {
  width: 100%;
  height: 38px;
  fill: none;
  stroke: #db7900;
  stroke-width: 2px;
}

.bento-insight__footer {
  padding-top: 7px;
  border-top: 1px solid rgb(26 35 60 / 8%);
  color: #57637b;
}

.bento-scene--handoff { background: none; }

.bento-handoff {
  width: min(100%, 236px);
}

.bento-handoff__people {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: -5px;
}

.bento-handoff__people > * {
  width: 33px;
  height: 33px;
  border: 2px solid #f8f8fa;
  border-radius: 50%;
  background: #ececf0;
  object-fit: cover;
}

.bento-handoff__people img:nth-child(3) {
  transform: translateY(-5px);
}

.bento-handoff__panel,
.bento-handoff__request {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #23232e;
  color: #f6f6fa;
  box-shadow: 0 3px 7px rgb(26 35 60 / 15%);
}

.bento-handoff__request {
  margin-top: 5px;
  background: #2e2e39;
}

@media (prefers-reduced-motion: no-preference) {
  .frigade-bento [data-motion-visible] {
    --bento-play: running;
  }

  [data-motion-started] .bento-network__signal {
    animation: bento-signal 9s linear infinite both var(--bento-play);
  }

  [data-motion-started] .bento-network__node {
    animation: bento-node 4.5s ease-in-out infinite both var(--bento-play);
  }

  [data-motion-started] :is(.bento-beat, .bento-handoff__people img, .bento-handoff__reply) {
    animation: bento-beat 9s ease infinite both var(--bento-play);
  }

  @supports (animation-timing-function: linear(0, 1)) {
    [data-motion-started] :is(.bento-beat, .bento-handoff__people img, .bento-handoff__reply) {
      animation-name: bento-beat-staggered;
      animation-timing-function: linear(0 0% var(--beat-in, 3%), 1 calc(var(--beat-in, 3%) + 8%), 1 87%, 0 96% 100%);
    }
  }

  .bento-log li:nth-child(2) { --beat-in: 8%; }
  .bento-log li:nth-child(3) { --beat-in: 13%; }
  .bento-log li:nth-child(4) { --beat-in: 18%; }

  [data-motion-started] .bento-guide__prompt {
    animation: bento-prompt 9s ease infinite both var(--bento-play);
  }

  [data-motion-started] .bento-guide__result {
    animation: bento-result 9s ease infinite both var(--bento-play);
  }

  [data-motion-started] .bento-insight__chart {
    stroke-dasharray: 100;
    animation: bento-chart 9s ease-in-out infinite both var(--bento-play);
  }

  .bento-insight__footer strong { --beat-in: 18%; }
  .bento-handoff__people img:nth-child(3) { --beat-in: 9%; }
  .bento-handoff__people img:nth-child(4) { --beat-in: 12%; }
  .bento-handoff__reply { --beat-in: 18%; }
}

@keyframes bento-signal {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: -100; }
}

@keyframes bento-node {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes bento-beat {
  0%, 100% { opacity: 0; translate: 0 5px; }
  9%, 89% { opacity: 1; translate: 0 0; }
}

@keyframes bento-beat-staggered {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes bento-prompt {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    animation-timing-function: steps(27, end);
  }
  18%, 30% { opacity: 1; clip-path: inset(0); }
  37%, 100% { opacity: 0; clip-path: inset(0); }
}

@keyframes bento-result {
  0%, 33%, 100% { opacity: 0; translate: 0 4px; }
  43%, 90% { opacity: 1; translate: 0 0; }
}

@keyframes bento-chart {
  0% { opacity: 1; stroke-dashoffset: 100; }
  24%, 90% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}

.frigade-bento__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 24px 24px;
}

.frigade-bento__body h3 {
  margin: 0;
  color: inherit;
  font: 600 15px / 1.3 "Frigade Atkinson", system-ui, sans-serif;
  letter-spacing: normal;
}

.frigade-bento__body p {
  margin: 0;
  color: #495167;
  font-size: 13px;
  line-height: 20px;
}

.frigade-bento__body a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  color: #015efb;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.frigade-bento__body a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .frigade-bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frigade-bento__card,
  .frigade-bento__card:nth-child(-n+2) {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .frigade-bento {
    padding: 32px 16px 0;
  }

  .frigade-bento__intro,
  .frigade-bento__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 540px;
  }

  .frigade-bento__intro {
    gap: 12px;
    padding: 20px 16px;
    border-radius: 14px 14px 0 0;
  }

  .frigade-bento__rail {
    max-width: 540px;
    border: 0;
    background: transparent;
  }

  .frigade-bento__grid {
    gap: 12px;
    padding: 0;
  }

  .frigade-bento__card {
    border-radius: 14px;
  }

  .frigade-bento__art,
  .frigade-bento__card:nth-child(-n+2) .frigade-bento__art {
    height: clamp(156px, 42vw, 196px);
  }

  .frigade-bento__body {
    padding: 12px 16px 14px;
  }

  .frigade-bento__body h3 {
    font-size: 17px;
  }

  .frigade-bento__body p {
    font-size: 15px;
    line-height: 1.45;
  }

  .frigade-bento__body a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    font-size: 15px;
  }
}
