:root {
  --brief-blue: #0a68f5;
  --brief-ink: #071d2f;
  --brief-muted: #7e8a97;
  --brief-line: #b8c9d9;
  --brief-panel: #ecf2f7;
  --brief-button-soft: #eff5fa;
}

html.brief-open,
html.brief-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.brief-shell,
.brief-shell * {
  box-sizing: border-box;
}

.brief-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.brief-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(220, 233, 246, .2);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
  opacity: 0;
  transition: opacity 280ms ease;
}

.brief-shell.is-open {
  visibility: visible;
  pointer-events: auto;
}

.brief-shell.is-open::before {
  opacity: 1;
}

.brief-shell.is-outside {
  cursor: default;
}

.brief-shell.is-outside .brief-dialog,
.brief-shell.is-outside .brief-dialog * {
  cursor: auto;
}

.brief-shell.is-outside .brief-button,
.brief-shell.is-outside .brief-back-button,
.brief-shell.is-outside .brief-option {
  cursor: pointer;
}

.brief-close-pill {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate3d(var(--brief-pill-x, 0), var(--brief-pill-y, 0), 0);
  will-change: transform;
}

.brief-close-pill-center {
  transform: translate(14px, -50%);
}

.brief-close-pill-label {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 999px;
  background: #071d2f;
  color: #fff;
  font: 500 15px/1 "Inter Tight Medium", "Inter Tight", sans-serif;
  white-space: nowrap;
  opacity: 0;
  filter: blur(9px);
  transform: scale(.82);
  transition: opacity .28s ease, filter .34s ease, transform .4s var(--source-spring-400, cubic-bezier(.22, 1, .36, 1));
  will-change: opacity, filter, transform;
}

.brief-close-pill.is-visible .brief-close-pill-label {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.brief-close-pill.is-visible.is-pressed .brief-close-pill-label {
  transform: scale(.94);
  transition-duration: .12s;
}

.portfolio-project-hover-pill-label {
  filter: blur(9px);
  transition: opacity .28s ease, filter .34s ease, transform .4s var(--source-spring-400, cubic-bezier(.22, 1, .36, 1));
  will-change: opacity, filter, transform;
}

#portfolio-project-hover-pill.is-visible .portfolio-project-hover-pill-label {
  filter: blur(0);
}

.brief-dialog {
  position: relative;
  width: min(632px, calc(100vw - 40px));
  height: 425px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  border: 0;
  border-radius: 25px;
  background: #fff;
  color: var(--brief-ink);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 280ms ease, filter 360ms ease;
}

.brief-mobile-close {
  display: none;
}

.brief-shell.is-open .brief-dialog {
  opacity: 1;
  filter: blur(0);
}

.brief-avatar {
  position: absolute;
  z-index: 3;
  top: -118px;
  left: 50%;
  width: 184px;
  height: 184px;
  transform: translate3d(calc(-50% + var(--brief-avatar-x, 0px)), var(--brief-avatar-y, 0px), 0);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.brief-avatar-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brief-avatar-video {
  opacity: 0;
}

.brief-avatar.is-playing .brief-avatar-video {
  opacity: 1;
}

.brief-avatar.is-playing .brief-avatar-image {
  visibility: hidden;
}

.brief-pane {
  min-width: 0;
  height: 425px;
  padding: 30px;
  overflow: hidden;
}

.brief-pane-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 25px 0 0 25px;
  background: #fff;
}

.brief-pane-right {
  display: flex;
  flex-direction: column;
  border-radius: 0 25px 25px 0;
  background: var(--brief-panel);
}

.brief-dialog.is-intro .brief-pane-right {
  padding: 0;
  background: #66d1ff;
}

.brief-intro-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.brief-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.brief-title {
  width: 100%;
  margin: 0;
  color: var(--brief-ink);
  font: 500 20px/28px "Inter Tight Medium", "Inter Tight", sans-serif;
  letter-spacing: 0;
}

.brief-lead {
  width: 100%;
  margin: 0;
  color: var(--brief-muted);
  font: 400 15px/24px "Inter Tight Regular", "Inter Tight", sans-serif;
  letter-spacing: 0;
}

.brief-intro-actions,
.brief-navigation,
.brief-result-actions {
  display: flex;
  width: 100%;
}

.brief-intro-actions,
.brief-result-actions {
  flex-direction: column;
  gap: 12px;
}

.brief-navigation {
  gap: 8px;
}

.brief-button,
.brief-back-button {
  position: relative;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: 500 15px/24px "Inter Tight Medium", "Inter Tight", sans-serif;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.brief-button {
  overflow: clip;
}

.brief-roll-label {
  position: relative;
  height: 48px;
  display: inline-block;
  overflow: visible;
  line-height: 24px;
}

.brief-roll-label-current,
.brief-roll-label-next {
  display: block;
  white-space: nowrap;
  transition: top 400ms cubic-bezier(.76, 0, .24, 1);
  will-change: top;
}

.brief-intro-actions .brief-roll-label-current,
.brief-intro-actions .brief-roll-label-next {
  transition-duration: 240ms;
}

.brief-roll-label-current {
  position: relative;
  top: 12px;
}

.brief-roll-label-next {
  position: absolute;
  top: 48px;
  left: 0;
}

.brief-button:not(:disabled):hover .brief-roll-label-current {
  top: -24px;
}

.brief-button:not(:disabled):hover .brief-roll-label-next {
  top: 12px;
}

.brief-button:active,
.brief-back-button:active {
  transform: scale(.97);
}

.brief-button-primary {
  flex: 1 1 auto;
  padding: 0 20px;
  background: var(--brief-blue);
  color: #fff;
}

.brief-button-primary:hover {
  background: #075bd6;
}

.brief-button-secondary,
.brief-back-button {
  background: var(--brief-button-soft);
  color: var(--brief-ink);
}

.brief-button-secondary:hover,
.brief-back-button:hover {
  color: var(--brief-blue);
  background: #e7f0f8;
}

.brief-button[disabled] {
  cursor: default;
  opacity: .42;
}

.brief-back-button {
  flex: 0 0 52px;
  width: 52px;
  padding: 0;
}

.brief-back-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brief-back-button img {
  display: block;
  width: 24px;
  height: 24px;
}

.brief-options,
.brief-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.brief-pane-right.is-scrollable {
  overflow-y: auto;
  scrollbar-width: none;
}

.brief-pane-right.is-scrollable::-webkit-scrollbar {
  display: none;
}

.brief-option {
  position: relative;
  flex: 0 0 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--brief-ink);
  cursor: pointer;
  font: 500 15px/20px "Inter Tight Medium", "Inter Tight", sans-serif;
  letter-spacing: 0;
}

.brief-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-option-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brief-line);
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.brief-option-check {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.brief-option:hover .brief-option-mark {
  border-color: var(--brief-blue);
}

.brief-option input:checked + .brief-option-mark {
  border-color: var(--brief-blue);
  background: var(--brief-blue);
}

.brief-option input:checked + .brief-option-mark .brief-option-check {
  opacity: 1;
}

.brief-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.brief-field > span,
.brief-field-label {
  color: var(--brief-muted);
  font: 400 13px/18px "Inter Tight Regular", "Inter Tight", sans-serif;
}

.brief-field input,
.brief-field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--brief-ink);
  font: 400 15px/20px "Inter Tight Regular", "Inter Tight", sans-serif;
  letter-spacing: 0;
  transition: border-color 160ms ease;
}

.brief-field input {
  height: 48px;
  padding: 0 14px;
}

.brief-field textarea {
  min-height: 160px;
  padding: 14px;
  resize: none;
}

.brief-pane-right.is-details,
.brief-pane-right.is-contact {
  padding: 0;
}

.brief-pane-right.is-details .brief-fields,
.brief-pane-right.is-details .brief-field,
.brief-pane-right.is-contact .brief-fields {
  height: 100%;
}

.brief-pane-right.is-details .brief-field {
  gap: 0;
}

.brief-pane-right.is-details .brief-field textarea {
  flex: 1 1 auto;
  min-height: 100%;
  padding: 30px;
  border: 0;
  border-radius: 0 25px 25px 0;
  background: transparent;
  font-size: 18px;
  line-height: 24px;
}

.brief-writing-field {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: text;
}

.brief-writing-field textarea,
.brief-writing-field input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--brief-ink);
  -webkit-text-fill-color: var(--brief-ink);
  caret-color: transparent;
  font: 400 18px/24px "Comic Sans MS", "Comic Sans", cursive;
  letter-spacing: 0;
  text-align: center;
}

.brief-writing-field textarea {
  padding: 194px 30px 30px;
  resize: none;
}

.brief-writing-field input {
  padding: 0 30px;
}

.brief-writing-field.has-value textarea,
.brief-writing-field.has-value input {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  caret-color: var(--brief-ink);
}

.brief-writing-placeholder {
  position: relative;
  z-index: 2;
  max-width: 228px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: rgba(7, 29, 47, .5);
  font: 400 15px/normal "Comic Sans MS", "Comic Sans", cursive;
  text-align: center;
  pointer-events: none;
}

.brief-writing-field.has-value .brief-writing-placeholder {
  visibility: hidden;
}

.brief-writing-caret {
  flex: 0 0 1px;
  width: 1px;
  height: 17px;
  margin-right: 2px;
  background: var(--brief-ink);
  opacity: .55;
}

.brief-writing-field:hover .brief-writing-caret,
.brief-writing-field:focus-within .brief-writing-caret {
  animation: brief-caret-blink .85s steps(1, end) infinite;
}

@keyframes brief-caret-blink {
  0%, 48% { opacity: .55; }
  49%, 100% { opacity: 0; }
}

.brief-details-field {
  width: 100%;
  height: 100%;
}

.brief-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 30px;
}

.brief-contact-field {
  flex: 1 1 0;
  width: 100%;
}

.brief-contact-field input {
  height: 48px;
}

.brief-contact-field:first-child input {
  inset: auto 0 0;
}

.brief-contact-field:last-child input {
  inset: 0 0 auto;
}

.brief-contact-field:first-child .brief-writing-placeholder {
  position: absolute;
  bottom: 15px;
}

.brief-contact-field:last-child .brief-writing-placeholder {
  position: absolute;
  top: 15px;
}

.brief-field input:focus,
.brief-field textarea:focus,
.brief-result:focus {
  border-color: #8ab7ff;
}

.brief-section-label {
  margin: 8px 0 0;
  color: var(--brief-muted);
  font: 400 13px/18px "Inter Tight Regular", "Inter Tight", sans-serif;
}

.brief-error {
  position: absolute;
  left: 30px;
  bottom: 84px;
  margin: 0;
  color: #d93e35;
  font: 400 12px/16px "Inter Tight Regular", "Inter Tight", sans-serif;
}

.brief-title-accent {
  color: var(--brief-blue);
}

.brief-pane-right.is-result {
  position: relative;
  padding: 0;
}

.brief-result {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 30px 30px 94px;
  overflow: auto;
  border: 0;
  outline: none;
  color: var(--brief-ink);
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 15px/22px "Comic Sans MS", "Comic Sans", cursive;
  letter-spacing: 0;
}

.brief-copy-round {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brief-blue);
  cursor: pointer;
  transition: background-color 180ms ease, transform 120ms ease;
}

.brief-copy-round:hover {
  background: #075bd6;
}

.brief-copy-round:active {
  transform: scale(.94);
}

.brief-copy-round img {
  width: 24px;
  height: 24px;
}

.brief-copy-round.is-copied {
  background: #51db81;
}

@media (max-width: 700px) {
  .brief-button,
  .brief-back-button,
  .brief-mobile-close,
  .brief-copy-round,
  .brief-option {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .brief-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .brief-dialog {
    --brief-mobile-panel-height: clamp(400px, 60.1dvh, 488px);
    width: 100vw;
    height: max(667px, 100dvh);
    flex: none;
    grid-template-columns: 1fr;
    grid-template-rows: calc(var(--brief-mobile-panel-height) + 5px) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 0;
  }

  .brief-close-pill {
    display: none;
  }

  .brief-avatar {
    display: none;
  }

  .brief-pane {
    height: auto;
    min-height: 0;
  }

  .brief-pane-left {
    grid-area: 2 / 1;
    padding: 20px;
    border-radius: 0;
    background: #fff;
  }

  .brief-pane-right {
    grid-area: 1 / 1;
    width: calc(100% - 10px);
    height: var(--brief-mobile-panel-height);
    margin: 5px 5px 0;
    padding: 20px;
    border-radius: 20px;
  }

  .brief-dialog.is-intro {
    width: min(355px, calc(100vw - 20px));
    height: 588px;
    min-height: 0;
    grid-template-rows: min(276px, 49.462%) minmax(0, 1fr);
    overflow: visible;
    border-radius: 25px;
  }

  .brief-dialog.is-intro .brief-pane-right {
    grid-area: 1 / 1;
    order: -1;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 25px 25px 0 0;
  }

  .brief-dialog.is-intro .brief-pane-left {
    grid-area: 2 / 1;
    height: 100%;
    padding: 14px 20px 20px;
    border-radius: 0 0 25px 25px;
  }

  .brief-dialog.is-intro .brief-mobile-close {
    position: absolute;
    z-index: 6;
    top: -52px;
    left: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--brief-ink);
    transform: translateX(-50%);
    cursor: pointer;
  }

  .brief-mobile-close img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .brief-mobile-close:active {
    transform: translateX(-50%) scale(.94);
  }

  .brief-pane-right.is-details,
  .brief-pane-right.is-contact,
  .brief-pane-right.is-result {
    padding: 0;
    border-radius: 20px;
  }

  .brief-contact-fields {
    padding: 20px;
  }

  .brief-writing-field textarea {
    padding: calc(var(--brief-mobile-panel-height) * .5 - 12px) 20px 20px;
  }

  .brief-writing-field input,
  .brief-writing-field textarea {
    -webkit-appearance: none;
    appearance: none;
    font-family: "Comic Sans MS", "Comic Sans", cursive !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
  }

  .brief-writing-placeholder {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
  }

  .brief-title {
    font-size: 20px;
    line-height: 28px;
  }

  .brief-lead {
    font-size: 15px;
    line-height: 24px;
  }

  .brief-navigation {
    flex: 0 0 48px;
  }

  .brief-shell.is-keyboard-open .brief-pane-left {
    z-index: 10;
    overflow: visible;
  }

  .brief-shell.is-keyboard-open .brief-navigation {
    position: relative;
    z-index: 7;
    pointer-events: auto;
    touch-action: manipulation;
    transform: translate3d(0, var(--brief-keyboard-translate, 0px), 0);
    will-change: transform;
  }

  .brief-button {
    border-radius: 8px;
  }

  .brief-error {
    left: 20px;
    bottom: 74px;
  }

  .brief-copy-round {
    right: 15px;
    bottom: 20px;
  }

  .brief-result {
    padding: 20px 20px 88px;
  }
}

@media (max-width: 700px) and (max-height: 666px) {
  .brief-shell:not(.is-intro-view) {
    align-items: flex-start;
  }
}

@media (max-width: 700px) and (max-height: 711px) {
  .brief-shell.is-intro-view {
    align-items: flex-start;
    padding-top: 62px;
    padding-bottom: 10px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .brief-shell::before,
  .brief-dialog {
    transition-duration: 1ms !important;
  }

  .brief-roll-label-current,
  .brief-roll-label-next {
    transition-duration: 1ms !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .brief-close-pill {
    display: none;
  }

  .brief-shell.is-outside {
    cursor: auto;
  }
}
